xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Classes | Macros | Typedefs | Enumerations | Functions | Variables
xtd.core

Definition

The xtd.core library contains all fundamental classes to access Hardware, Os, System, and more.

Classes

class  xtd::argument_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::argument_null_exception
 The exception that is thrown when one of the arguments provided to a method is null. More...
 
class  xtd::argument_out_of_range_exception
 The exception that is thrown when one of the arguments provided to a method is out of range. More...
 
class  xtd::arithmetic_exception
 The exception that is thrown for errors in an arithmetic, casting, or conversion operation. More...
 
class  xtd::background_color
 Represent background color output manipulator class. More...
 
class  xtd::beep
 Represent beep output manipulator class. More...
 
class  xtd::bit_converter
 Converts base data types to an std::vector of bytes, and an std::vector of bytes to base data types. More...
 
class  xtd::collections::key_not_found_exception
 The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection. More...
 
class  xtd::compiler
 Represents information about c++ libraries, such as the version and standard identifier. This class cannot be inherited. More...
 
class  xtd::console
 Represents the standard input, output, and error streams for console applications. More...
 
class  xtd::console_cancel_event_args
 Provides data for the console::cancel_key_press event. This class cannot be inherited. More...
 
class  xtd::console_key_info
 Specifies the standard keys on a console. More...
 
struct  xtd::const_overload< args_t >
 Represents class that use to determine one of const overloaded methods. More...
 
class  xtd::convert
 Represents API to convert base type code. More...
 
class  xtd::convert_pointer
 Represents API to convert pointers. More...
 
class  xtd::convert_string
 Represents API to convert string containers. More...
 
class  xtd::cpp_language
 Represents information about c++ libraries, such as the version and language identifier. This class cannot be inherited. More...
 
class  xtd::debugstreambuf
 Provides an std::stringbuf for xtd::diagnostics::debug. More...
 
class  xtd::delegate< result_t(arguments_t...)>
 Represents a delegate, which is a data structure that refers to a static method or to a class instance && an instance method of that class. More...
 
class  xtd::diagnostics::boolean_switch
 Provides a simple on/off switch that controls debugging and tracing output. More...
 
class  xtd::diagnostics::console_trace_listener
 Directs tracing or debugging output to either the standard output or the standard error stream. More...
 
class  xtd::diagnostics::data_received_event_args
 Provides data for the xtd::diagnostics::process::output_data_received and xtd::diagnostics::process::error_data_received events. More...
 
class  xtd::diagnostics::debug
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 
class  xtd::diagnostics::debugger
 Enables communication with a debugger. This class cannot be inherited. More...
 
class  xtd::diagnostics::default_trace_listener
 Provides the default output methods and behavior for tracing. More...
 
class  xtd::diagnostics::event_type_filter
 Indicates whether a listener should trace based on the event type. More...
 
class  xtd::diagnostics::ostream_trace_listener
 Directs tracing or debugging output to a std::ostream, such as std::fstream, std::stream... More...
 
class  xtd::diagnostics::process
 Provides access to local and remote processes and enables you to start and stop local system processes. More...
 
class  xtd::diagnostics::process::error_data_received_event
 Represents a process error data received event. More...
 
class  xtd::diagnostics::process::exit_event
 Represents a process exit event. More...
 
class  xtd::diagnostics::process::output_data_received_event
 Represents a process output data received event. More...
 
class  xtd::diagnostics::process_start_info
 Specifies a set of values that are used when you start a process. More...
 
class  xtd::diagnostics::source_filter
 Indicates whether a listener should trace a message based on the source of a trace. More...
 
class  xtd::diagnostics::source_switch
 Provides a multilevel switch to control tracing and debug output without recompiling your code. More...
 
class  xtd::diagnostics::stack_frame
 Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the call stack for the current thread. More...
 
class  xtd::diagnostics::stack_trace
 Represents a stack trace, which is an ordered collection of one or more stack frames. More...
 
class  xtd::diagnostics::stopwatch
 Provides a set of methods and properties that you can use to accurately measure elapsed time. More...
 
class  xtd::diagnostics::switch_base
 Provides an abstract base class to create new debugging and tracing switches. More...
 
class  xtd::diagnostics::trace
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 
class  xtd::diagnostics::trace_event_cache
 Provides trace event data specific to a thread and a process. More...
 
class  xtd::diagnostics::trace_filter
 Provides the base class for trace filter implementations. More...
 
class  xtd::diagnostics::trace_listener
 Provides the abstract base class for the listeners who monitor trace and debug output. More...
 
class  xtd::diagnostics::trace_listener_collection
 Represents a collection of xtd::diagnostics::trace_listener. More...
 
class  xtd::diagnostics::trace_source
 Provides a set of methods and properties that enable applications to trace the execution of code and associate trace messages with their source. More...
 
class  xtd::diagnostics::trace_switch
 Provides a multilevel switch to control tracing and debug output without recompiling your code. More...
 
class  xtd::divided_by_zero_exception
 The exception that is thrown when there is an attempt to divide an integral or decimal value by zero. More...
 
class  xtd::domain_exception
 The exception that is thrown for errors in domain. That is, situations where the inputs are outside of the domain on which an operation is defined.. More...
 
class  xtd::environment
 The environment class. More...
 
class  xtd::event< object_t, handler_t >
 Represents an event. More...
 
class  xtd::event_args
 Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data. More...
 
class  xtd::foreground_color
 Represent foreground color output manipulator class. More...
 
class  xtd::format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
struct  xtd::guid
 Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated. More...
 
class  xtd::iasync_result
 Represents the status of an asynchronous operation. More...
 
class  xtd::icomparable< type_t >
 Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method. More...
 
class  xtd::iequatable< type_t >
 Defines a generalized method that a value type or class implements to create a type-specific method for determining equality of instances. More...
 
class  xtd::index_out_of_range_exception
 The exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. More...
 
class  xtd::interface
 Represent an interface class. More...
 
class  xtd::invalid_cast_exception
 The exception that is thrown for invalid casting or explicit conversion. More...
 
class  xtd::invalid_operation_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::invalid_program_exception
 The exception that is thrown when a program contains invalid metadata. Generally this indicates a bug in the compiler that generated the program. More...
 
class  xtd::io::directory_not_found_exception
 The exception that is thrown when part of a file or directory cannot be found. More...
 
class  xtd::io::drive_not_found_exception
 The exception that is thrown when trying to access a drive or share that is not available. More...
 
class  xtd::io::end_of_stream_exception
 The exception that is thrown when reading is attempted past the end of a stream. More...
 
class  xtd::io::file
 Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of std::fstream objects. More...
 
class  xtd::io::file_format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
class  xtd::io::file_load_exception
 The exception that is thrown when a managed assembly is found but cannot be loaded. More...
 
class  xtd::io::file_not_found_exception
 The exception that is thrown when an attempt to access a file that does not exist on disk fails. More...
 
class  xtd::io::io_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  xtd::io::null_text_reader
 Represents a null text reader. More...
 
class  xtd::io::null_text_writer
 Represents a null text writer. More...
 
class  xtd::io::path
 Performs operations on std::basic_string instances that contain file or directory path information. These operations are performed in a cross-platform manner. More...
 
class  xtd::io::path_too_long_exception
 The exception that is thrown when a path or file name is longer than the system-defined maximum length. More...
 
class  xtd::io::stream_reader
 Implements a xtd::io::text_reader that reads characters from a byte stream. More...
 
class  xtd::io::stream_writer
 Implements a xtd::io::text_writer for writing characters to a stream. More...
 
class  xtd::io::string_reader
 Implements a xtd::io::text_reader that reads from a string. More...
 
class  xtd::io::string_writer
 Implements a xtd::io::text_writer for writing characters to a string. More...
 
class  xtd::io::synchronized_text_reader
 Represents a synchronized text reader. More...
 
class  xtd::io::synchronized_text_writer
 Represents a synchronized text writer. More...
 
class  xtd::io::text_reader
 Represents a reader that can read a sequential series of characters. More...
 
class  xtd::io::text_writer
 Represents a writer that can write a sequential series of characters. More...
 
class  xtd::length_exception
 The exception that is thrown when an attempts to exceed implementation defined length limits for some object. More...
 
class  xtd::math
 Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions. More...
 
class  xtd::media::system_sound
 Represents a system sound type. More...
 
class  xtd::media::system_sounds
 Retrieves sounds associated with a set of Windows operating system sound-event types. This class cannot be inherited. More...
 
class  xtd::net::cookie_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
class  xtd::net::dns
 Provides simple domain name resolution functionality. More...
 
class  xtd::net::dns_end_point
 Represents a network endpoint as a host name or a string representation of an IP address and a port number. More...
 
class  xtd::net::end_point
 Identifies a network address. This is an abstract class. More...
 
class  xtd::net::ip_address
 Provides an Internet Protocol (IP) address. More...
 
class  xtd::net::ip_end_point
 Represents a network endpoint as an IP address and a port number. More...
 
class  xtd::net::ip_host_entry
 Provides a container class for Internet host address information. More...
 
class  xtd::net::network_credential
 Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication. More...
 
class  xtd::net::protocol_violation_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
class  xtd::net::socket_address
 Stores serialized information from end_point derived classes. More...
 
class  xtd::net::sockets::ip_packet_information
 Gets the network interface information that is associated with a call to xtd::net::sockets::socket::receive_message_from or xtd::net::sockets::socket::end_receive_message_from. More...
 
class  xtd::net::sockets::ip_v6_multicast_option
 Contains option values for joining an IPv6 multicast group. More...
 
class  xtd::net::sockets::linger_option
 Specifies whether a xtd::net::sockets::socket will remain connected after a call to the xtd::net::sockets::socket::close or xtd::net::sockets::tcp_client::close methods and the length of time it will remain connected, if data remains to be sent. More...
 
class  xtd::net::sockets::multicast_option
 Contains IPAddress values used to join and drop multicast groups. More...
 
class  xtd::net::sockets::network_stream
 Provides the underlying stream of data for network access. More...
 
class  xtd::net::sockets::send_packets_element
 Represents an element in a xtd::net::sockets::send_packets_element array. More...
 
class  xtd::net::sockets::socket
 Implements the Berkeley sockets interface. More...
 
class  xtd::net::sockets::socket_async_event_args
 Represents an asynchronous socket operation. More...
 
class  xtd::net::sockets::socket_exception
 The exception that is thrown when a socket error occurs. More...
 
class  xtd::net::sockets::socket_information
 Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket. More...
 
class  xtd::net::sockets::tcp_client
 Provides client connections for TCP network services. More...
 
class  xtd::net::sockets::tcp_listener
 Listens for connections from TCP network clients. More...
 
class  xtd::net::sockets::udp_client
 Provides User Datagram Protocol (UDP) network services. More...
 
class  xtd::net::web_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
struct  xtd::non_const_overload< args_t >
 Represents class that use to determine one of non const overloaded methods. More...
 
class  xtd::not_finite_number_exception
 The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN). More...
 
class  xtd::not_implemented_exception
 The exception that is thrown when a requested method or operation is not implemented. More...
 
class  xtd::not_supported_exception
 The exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality. More...
 
class  xtd::null_pointer_exception
 The exception that is thrown when there is an attempt to dereference a null object pointer. More...
 
class  xtd::object
 Supports all classes in the xtd class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the xtd. It is the root of the type hierarchy. More...
 
class  xtd::object_closed_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::operating_system
 Represents information about an operating system, such as the version and platform identifier. This class cannot be inherited. More...
 
class  xtd::operation_canceled_exception
 The exception that is thrown in a thread upon cancellation of an operation that the thread was executing. More...
 
class  xtd::overflow_exception
 The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow. More...
 
struct  xtd::overload< args_t >
 Represents class that use to determine one of const and non const overloaded methods. More...
 
class  xtd::platform_not_supported_exception
 The exception that is thrown when a feature does not run on a particular platform. More...
 
class  xtd::processor
 Represents information about a processor, such as the architecture. This class cannot be inherited. More...
 
class  xtd::random
 Represents a pseudo-random number generator, a device that produces a sequence of numbers that meet certain statistical requirements for randomness. More...
 
class  xtd::reset_color
 Represent reset color output manipulator class. More...
 
class  xtd::security::secure_string
 Represents text that should be kept confidential, such as by deleting it from computer memory when no longer needed. This class cannot be inherited. More...
 
class  xtd::static_object
 Represent a static object. A static class can't be instantiated (constructors are deleted). More...
 
class  xtd::system_exception
 Defines the base class for predefined exceptions in the xtd namespace. More...
 
class  xtd::time_out_exception
 The exception that is thrown when the time allotted for a process or operation has expired. More...
 
class  xtd::tracestreambuf
 Provides an std::stringbuf for xtd::diagnostics::trace. More...
 
class  xtd::translator
 Represents translator class. This class cannot be inherited. More...
 
class  xtd::underflow_exception
 The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an underflow. More...
 
class  xtd::ustring
 Represents text as a sequence of UTF-8 code units. More...
 
class  xtd::version
 Represents the version number of an assembly, operating system, or the xtd. This class cannot be inherited. More...
 
class  xtd::xml_syntax_exception
 The exception that is thrown when there is a syntax error in XML parsing. More...
 

Macros

#define add_last_arg_to_command_(command, last_arg, ...)
 Adds last argument to a command with variadic arguments. More...
 
#define const_overload_
 Helper keyword that use to determine one of const overloaded methods. More...
 
#define non_const_overload_
 Helper keyword that use to determine one of non const overloaded methods. More...
 
#define overload_
 Helper keyword that use to determine one of const and non const overloaded methods. More...
 

Typedefs

template<typename... arguments_t>
using xtd::action = delegate< void(arguments_t...)>
 Represents a xtd::delegate that has variable parameters and does not return a value. More...
 
using xtd::async_callback = delegate< void(std::shared_ptr< xtd::iasync_result > ar)>
 References a method to be called when a corresponding asynchronous operation completes. More...
 
template<typename result_t , typename... arguments_t>
using xtd::func = delegate< result_t(arguments_t...)>
 Represents a delegate that has variables parameters and returns a value of the type specified by the result_t type. More...
 
template<typename type_t >
using xtd::predicate = delegate< bool(type_t)>
 Represents a delegate that defines a set of criteria and determines whether the specified object meets those criteria. More...
 

Enumerations

enum class  xtd::net::sockets::address_family {
  xtd::net::sockets::unknown ,
  xtd::net::sockets::unspecified ,
  xtd::net::sockets::unix ,
  xtd::net::sockets::inter_network ,
  xtd::net::sockets::imp_link ,
  xtd::net::sockets::pup ,
  xtd::net::sockets::chaos ,
  xtd::net::sockets::ns ,
  xtd::net::sockets::ipx ,
  xtd::net::sockets::iso ,
  xtd::net::sockets::osi ,
  xtd::net::sockets::ecma ,
  xtd::net::sockets::data_kit ,
  xtd::net::sockets::ccitt ,
  xtd::net::sockets::sna ,
  xtd::net::sockets::dec_net ,
  xtd::net::sockets::data_link ,
  xtd::net::sockets::lat ,
  xtd::net::sockets::hyper_channel ,
  xtd::net::sockets::apple_talk ,
  xtd::net::sockets::net_bios ,
  xtd::net::sockets::voice_view ,
  xtd::net::sockets::fire_fox ,
  xtd::net::sockets::banyan ,
  xtd::net::sockets::atm ,
  xtd::net::sockets::inter_network_v6 ,
  xtd::net::sockets::cluster ,
  xtd::net::sockets::ieee12844 ,
  xtd::net::sockets::irda ,
  xtd::net::sockets::network_designers ,
  xtd::net::sockets::max
}
 Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use. More...
 
enum class  xtd::architecture_id {
  xtd::unknown ,
  xtd::x86 ,
  xtd::arm
}
 Identifies the processor architecture, supported by an assembly. More...
 
enum class  xtd::diagnostics::assert_dialog_result {
  xtd::diagnostics::abort ,
  xtd::diagnostics::retry ,
  xtd::diagnostics::ignore
}
 Specifies identifiers to indicate the return value of an assert dialog box. More...
 
enum class  xtd::build_type {
  xtd::debug ,
  xtd::release
}
 Identifies the build type. More...
 
enum class  xtd::compiler_id {
  xtd::unknown ,
  xtd::microsoft_visual_studio ,
  xtd::clang ,
  xtd::gcc
}
 Identifies the compiler, supported by an assembly. More...
 
enum class  xtd::console_color {
  xtd::black ,
  xtd::dark_blue ,
  xtd::dark_green ,
  xtd::dark_cyan ,
  xtd::dark_red ,
  xtd::dark_magenta ,
  xtd::dark_yellow ,
  xtd::gray ,
  xtd::dark_gray ,
  xtd::blue ,
  xtd::green ,
  xtd::cyan ,
  xtd::red ,
  xtd::magenta ,
  xtd::yellow ,
  xtd::white
}
 Specifies constants that define foreground and background colors for the console. More...
 
enum class  xtd::console_key {
  xtd::backspace ,
  xtd::tab ,
  xtd::clear ,
  xtd::enter ,
  xtd::pause ,
  xtd::caps_lock ,
  xtd::escape ,
  xtd::spacebar ,
  xtd::page_up ,
  xtd::page_down ,
  xtd::end ,
  xtd::home ,
  xtd::left_arrow ,
  xtd::up_arrow ,
  xtd::right_arrow ,
  xtd::down_arrow ,
  xtd::select ,
  xtd::print ,
  xtd::execute ,
  xtd::print_screen ,
  xtd::insert ,
  xtd::del ,
  xtd::help ,
  xtd::d0 ,
  xtd::d1 ,
  xtd::d2 ,
  xtd::d3 ,
  xtd::d4 ,
  xtd::d5 ,
  xtd::d6 ,
  xtd::d7 ,
  xtd::d8 ,
  xtd::d9 ,
  xtd::a ,
  xtd::b ,
  xtd::c ,
  xtd::d ,
  xtd::e ,
  xtd::f ,
  xtd::g ,
  xtd::h ,
  xtd::i ,
  xtd::j ,
  xtd::k ,
  xtd::l ,
  xtd::m ,
  xtd::n ,
  xtd::o ,
  xtd::p ,
  xtd::q ,
  xtd::r ,
  xtd::s ,
  xtd::t ,
  xtd::u ,
  xtd::v ,
  xtd::w ,
  xtd::x ,
  xtd::y ,
  xtd::z ,
  xtd::left_windows ,
  xtd::right_windows ,
  xtd::applications ,
  xtd::sleep ,
  xtd::num_pad_0 ,
  xtd::num_pad_1 ,
  xtd::num_pad_2 ,
  xtd::num_pad_3 ,
  xtd::num_pad_4 ,
  xtd::num_pad_5 ,
  xtd::num_pad_6 ,
  xtd::num_pad_7 ,
  xtd::num_pad_8 ,
  xtd::num_pad_9 ,
  xtd::multiply ,
  xtd::add ,
  xtd::separator ,
  xtd::subtract ,
  xtd::decimal ,
  xtd::divide ,
  xtd::f1 ,
  xtd::f2 ,
  xtd::f3 ,
  xtd::f4 ,
  xtd::f5 ,
  xtd::f6 ,
  xtd::f7 ,
  xtd::f8 ,
  xtd::f9 ,
  xtd::f10 ,
  xtd::f11 ,
  xtd::f12 ,
  xtd::f13 ,
  xtd::f14 ,
  xtd::f15 ,
  xtd::f16 ,
  xtd::f17 ,
  xtd::f18 ,
  xtd::f19 ,
  xtd::f20 ,
  xtd::f21 ,
  xtd::f22 ,
  xtd::f23 ,
  xtd::f24 ,
  xtd::browser_back ,
  xtd::browser_forward ,
  xtd::browser_refresh ,
  xtd::browser_stop ,
  xtd::browser_search ,
  xtd::browser_favorites ,
  xtd::browser_home ,
  xtd::volume_mute ,
  xtd::volume_down ,
  xtd::volume_up ,
  xtd::media_next ,
  xtd::media_previous ,
  xtd::media_stop ,
  xtd::media_play ,
  xtd::launch_mail ,
  xtd::launch_media_select ,
  xtd::launch_app1 ,
  xtd::launch_app2 ,
  xtd::oem1 ,
  xtd::oem_plus ,
  xtd::oem_comma ,
  xtd::oem_minus ,
  xtd::oem_period ,
  xtd::oem2 ,
  xtd::oem3 ,
  xtd::oem4 ,
  xtd::oem5 ,
  xtd::oem6 ,
  xtd::oem7 ,
  xtd::oem8 ,
  xtd::oem102 ,
  xtd::process ,
  xtd::packet ,
  xtd::attention ,
  xtd::cr_sel ,
  xtd::ex_sel ,
  xtd::erase_end_of_file ,
  xtd::play ,
  xtd::zoom ,
  xtd::no_name ,
  xtd::pa1 ,
  xtd::oem_clear
}
 Specifies the standard keys on a console. More...
 
enum class  xtd::console_modifiers {
  xtd::alt ,
  xtd::shift ,
  xtd::control
}
 Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard. More...
 
enum class  xtd::console_special_key {
  xtd::control_break ,
  xtd::control_c ,
  xtd::control_backslash ,
  xtd::control_z
}
 Specifies combinations of modifier and console keys that can interrupt the current process. More...
 
enum class  xtd::environment_variable_target {
  xtd::process ,
  xtd::user ,
  xtd::machine
}
 Specifies the location where an environment variable is stored or retrieved in a set or get operation. More...
 
enum class  xtd::io::file_access {
  xtd::io::read ,
  xtd::io::write ,
  xtd::io::read_write
}
 Defines constants for read, write, or read/write access to a file. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::io::file_attributes {
  xtd::io::read_only ,
  xtd::io::hidden ,
  xtd::io::system ,
  xtd::io::directory ,
  xtd::io::archive ,
  xtd::io::device ,
  xtd::io::normal ,
  xtd::io::temporary ,
  xtd::io::sparse_file ,
  xtd::io::reparse_point ,
  xtd::io::compressed ,
  xtd::io::offline ,
  xtd::io::not_content_indexed ,
  xtd::io::encrypted
}
 Provides attributes for files and directories. More...
 
enum class  xtd::net::sockets::io_control_code : uint64_t {
  xtd::net::sockets::enable_circular_queuing ,
  xtd::net::sockets::flush ,
  xtd::net::sockets::address_list_change ,
  xtd::net::sockets::data_to_read ,
  xtd::net::sockets::oob_data_read ,
  xtd::net::sockets::get_broadcast_address ,
  xtd::net::sockets::address_list_query ,
  xtd::net::sockets::query_target_pnp_handle ,
  xtd::net::sockets::async_io ,
  xtd::net::sockets::non_blocking_io ,
  xtd::net::sockets::associate_handle ,
  xtd::net::sockets::multipoint_loopback ,
  xtd::net::sockets::multicast_scope ,
  xtd::net::sockets::set_qos ,
  xtd::net::sockets::set_group_qos ,
  xtd::net::sockets::routing_interface_change ,
  xtd::net::sockets::namespace_change ,
  xtd::net::sockets::receive_all ,
  xtd::net::sockets::receive_all_multicast ,
  xtd::net::sockets::receive_all_igmp_multicast ,
  xtd::net::sockets::keep_alive_values ,
  xtd::net::sockets::absorb_router_alert ,
  xtd::net::sockets::unicast_interface ,
  xtd::net::sockets::limit_broadcasts ,
  xtd::net::sockets::bind_to_interface ,
  xtd::net::sockets::multicast_interface ,
  xtd::net::sockets::add_multicast_group_on_interface ,
  xtd::net::sockets::delete_multicast_group_from_interface ,
  xtd::net::sockets::get_extension_function_pointer ,
  xtd::net::sockets::get_qos ,
  xtd::net::sockets::get_group_qos ,
  xtd::net::sockets::translate_handle ,
  xtd::net::sockets::routing_interface_query ,
  xtd::net::sockets::address_list_sort
}
 Specifies the IO control codes supported by the xtd::net::sockets::socket::io_control method. More...
 
enum class  xtd::net::sockets::ip_protection_level {
  xtd::net::sockets::unspecified ,
  xtd::net::sockets::unrestricted ,
  xtd::net::sockets::edge_restricted ,
  xtd::net::sockets::restricted
}
 A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix. More...
 
enum class  xtd::language_id {
  xtd::unknown ,
  xtd::cpp_pre98 ,
  xtd::cpp98 ,
  xtd::cpp11 ,
  xtd::cpp14 ,
  xtd::cpp17 ,
  xtd::cpp20
}
 Identifies the c++ language used by assembly. More...
 
enum class  xtd::number_styles {
  xtd::none ,
  xtd::allow_leading_white ,
  xtd::allow_trailing_white ,
  xtd::allow_leading_sign ,
  xtd::allow_trailing_sign ,
  xtd::allow_parentheses ,
  xtd::allow_decimal_point ,
  xtd::allow_thousands ,
  xtd::allow_exponent ,
  xtd::allow_currency_symbol ,
  xtd::allow_hex_specifier ,
  xtd::allow_binary_specifier ,
  xtd::allow_octal_specifier ,
  xtd::integer ,
  xtd::number ,
  xtd::fixed_point ,
  xtd::currency ,
  xtd::any ,
  xtd::hex_number ,
  xtd::binary_number ,
  xtd::octal_number
}
 Determines the styles permitted in numeric string arguments that are passed to the xtd::parse and xtd::try_parse methods of the integral and floating-point numeric types. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::platform_id {
  xtd::unknown ,
  xtd::win32s ,
  xtd::win32_windows ,
  xtd::win32_nt ,
  xtd::win_ce ,
  xtd::unix ,
  xtd::xbox ,
  xtd::macos ,
  xtd::ios ,
  xtd::android
}
 Identifies the operating system, or platform, supported by an assembly. More...
 
enum class  xtd::diagnostics::process_priority_class {
  xtd::diagnostics::normal ,
  xtd::diagnostics::idle ,
  xtd::diagnostics::high ,
  xtd::diagnostics::real_time ,
  xtd::diagnostics::below_normal ,
  xtd::diagnostics::above_normal
}
 Indicates the priority that the system associates with a process. This value, together with the priority value of each thread of the process, determines each thread's base priority level. More...
 
enum class  xtd::diagnostics::process_window_style {
  xtd::diagnostics::normal ,
  xtd::diagnostics::hidden ,
  xtd::diagnostics::minimized ,
  xtd::diagnostics::maximized
}
 Specified how a new window should appear when the system starts a process. More...
 
enum class  xtd::net::sockets::protocol_family {
  xtd::net::sockets::unknown ,
  xtd::net::sockets::unspecified ,
  xtd::net::sockets::unix ,
  xtd::net::sockets::inter_network ,
  xtd::net::sockets::imp_link ,
  xtd::net::sockets::pup ,
  xtd::net::sockets::chaos ,
  xtd::net::sockets::ns ,
  xtd::net::sockets::ipx ,
  xtd::net::sockets::iso ,
  xtd::net::sockets::osi ,
  xtd::net::sockets::ecma ,
  xtd::net::sockets::data_kit ,
  xtd::net::sockets::ccitt ,
  xtd::net::sockets::sna ,
  xtd::net::sockets::dec_net ,
  xtd::net::sockets::data_link ,
  xtd::net::sockets::lat ,
  xtd::net::sockets::hyper_channel ,
  xtd::net::sockets::apple_talk ,
  xtd::net::sockets::net_bios ,
  xtd::net::sockets::voice_view ,
  xtd::net::sockets::fire_fox ,
  xtd::net::sockets::banyan ,
  xtd::net::sockets::atm ,
  xtd::net::sockets::inter_network_v6 ,
  xtd::net::sockets::cluster ,
  xtd::net::sockets::ieee12844 ,
  xtd::net::sockets::irda ,
  xtd::net::sockets::network_designers ,
  xtd::net::sockets::max
}
 Specifies the type of protocol that an instance of the xtd::net::sockets::socket class can use. More...
 
enum class  xtd::net::sockets::protocol_type {
  xtd::net::sockets::unknown ,
  xtd::net::sockets::ip_v6_hop_by_hop_options ,
  xtd::net::sockets::unspecified ,
  xtd::net::sockets::ip ,
  xtd::net::sockets::icmp ,
  xtd::net::sockets::igmp ,
  xtd::net::sockets::ggp ,
  xtd::net::sockets::ip_v4 ,
  xtd::net::sockets::tcp ,
  xtd::net::sockets::pup ,
  xtd::net::sockets::udp ,
  xtd::net::sockets::idp ,
  xtd::net::sockets::ip_v6 ,
  xtd::net::sockets::ip_v6_routing_header ,
  xtd::net::sockets::ip_v6_fragment_header ,
  xtd::net::sockets::ip_sec_encapsulating_security_payload ,
  xtd::net::sockets::ip_sec_authentication_header ,
  xtd::net::sockets::icmp_v6 ,
  xtd::net::sockets::ip_v6_no_next_header ,
  xtd::net::sockets::ip_v6_destination_options ,
  xtd::net::sockets::nd ,
  xtd::net::sockets::raw ,
  xtd::net::sockets::ipx ,
  xtd::net::sockets::spx ,
  xtd::net::sockets::spx_2
}
 Specifies the protocols that the xtd::net::sockets::socket class supports. More...
 
enum class  xtd::net::sockets::select_mode {
  xtd::net::sockets::select_read ,
  xtd::net::sockets::select_write ,
  xtd::net::sockets::select_error
}
 Defines the polling modes for the xtd::net::sockets::socket::poll method. More...
 
enum class  xtd::net::sockets::socket_async_operation {
  xtd::net::sockets::none ,
  xtd::net::sockets::accept ,
  xtd::net::sockets::connect ,
  xtd::net::sockets::disconnect ,
  xtd::net::sockets::receive ,
  xtd::net::sockets::receive_from ,
  xtd::net::sockets::receive_message_from ,
  xtd::net::sockets::send ,
  xtd::net::sockets::send_packets ,
  xtd::net::sockets::send_to
}
 The type of asynchronous socket operation most recently performed with this context object. More...
 
enum class  xtd::net::sockets::socket_error {
  xtd::net::sockets::sock_error ,
  xtd::net::sockets::success ,
  xtd::net::sockets::operation_aborted ,
  xtd::net::sockets::io_pending ,
  xtd::net::sockets::interrupted ,
  xtd::net::sockets::access_denied ,
  xtd::net::sockets::fault ,
  xtd::net::sockets::invalid_argument ,
  xtd::net::sockets::too_many_open_sockets ,
  xtd::net::sockets::would_block ,
  xtd::net::sockets::in_progress ,
  xtd::net::sockets::already_in_progress ,
  xtd::net::sockets::not_socket ,
  xtd::net::sockets::destination_address_required ,
  xtd::net::sockets::message_size ,
  xtd::net::sockets::protocol_type ,
  xtd::net::sockets::protocol_option ,
  xtd::net::sockets::protocol_not_supported ,
  xtd::net::sockets::socket_not_supported ,
  xtd::net::sockets::operation_not_supported ,
  xtd::net::sockets::protocol_family_not_supported ,
  xtd::net::sockets::address_family_not_supported ,
  xtd::net::sockets::address_already_in_use ,
  xtd::net::sockets::address_not_available ,
  xtd::net::sockets::network_down ,
  xtd::net::sockets::network_unreachable ,
  xtd::net::sockets::network_reset ,
  xtd::net::sockets::connection_aborted ,
  xtd::net::sockets::connection_reset ,
  xtd::net::sockets::no_buffer_space_available ,
  xtd::net::sockets::is_connected ,
  xtd::net::sockets::not_connected ,
  xtd::net::sockets::shutdown ,
  xtd::net::sockets::timed_out ,
  xtd::net::sockets::connection_refused ,
  xtd::net::sockets::host_down ,
  xtd::net::sockets::host_unreachable ,
  xtd::net::sockets::process_limit ,
  xtd::net::sockets::system_not_ready ,
  xtd::net::sockets::version_not_supported ,
  xtd::net::sockets::not_initialized ,
  xtd::net::sockets::disconnecting ,
  xtd::net::sockets::type_not_found ,
  xtd::net::sockets::host_not_found ,
  xtd::net::sockets::try_again ,
  xtd::net::sockets::no_recovery ,
  xtd::net::sockets::no_data
}
 Defines error codes for the xtd::net::sockets::socket class. More...
 
enum class  xtd::net::sockets::socket_flags {
  xtd::net::sockets::none ,
  xtd::net::sockets::out_of_band ,
  xtd::net::sockets::peek ,
  xtd::net::sockets::dont_route ,
  xtd::net::sockets::max_io_vector_length ,
  xtd::net::sockets::truncated ,
  xtd::net::sockets::control_data_truncated ,
  xtd::net::sockets::broadcast ,
  xtd::net::sockets::multicast ,
  xtd::net::sockets::partial
}
 Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::net::sockets::socket_information_options {
  xtd::net::sockets::none ,
  xtd::net::sockets::non_blocking ,
  xtd::net::sockets::connected ,
  xtd::net::sockets::listening ,
  xtd::net::sockets::use_only_overlapped_io
}
 Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::net::sockets::socket_option_level {
  xtd::net::sockets::socket ,
  xtd::net::sockets::ip ,
  xtd::net::sockets::ip_v6 ,
  xtd::net::sockets::tcp ,
  xtd::net::sockets::udp
}
 Defines socket option levels for the xtd::net::sockets::socket::set_socket_option and xtd::net::sockets::socket::get_socket_option methods. More...
 
enum class  xtd::net::sockets::socket_option_name {
  xtd::net::sockets::debug ,
  xtd::net::sockets::accept_connection ,
  xtd::net::sockets::reuse_address ,
  xtd::net::sockets::keep_alive ,
  xtd::net::sockets::dont_route ,
  xtd::net::sockets::broadcast ,
  xtd::net::sockets::use_loopback ,
  xtd::net::sockets::linger ,
  xtd::net::sockets::out_of_band_inline ,
  xtd::net::sockets::dont_linger ,
  xtd::net::sockets::exclusive_address_use ,
  xtd::net::sockets::send_buffer ,
  xtd::net::sockets::receive_buffer ,
  xtd::net::sockets::send_low_water ,
  xtd::net::sockets::receive_low_water ,
  xtd::net::sockets::send_timeout ,
  xtd::net::sockets::receive_timeout ,
  xtd::net::sockets::error ,
  xtd::net::sockets::type ,
  xtd::net::sockets::max_connections ,
  xtd::net::sockets::ip_options ,
  xtd::net::sockets::header_included ,
  xtd::net::sockets::type_of_service ,
  xtd::net::sockets::ip_time_to_live ,
  xtd::net::sockets::multicast_interface ,
  xtd::net::sockets::multicast_time_to_live ,
  xtd::net::sockets::multicast_loopback ,
  xtd::net::sockets::add_membership ,
  xtd::net::sockets::drop_membership ,
  xtd::net::sockets::dont_fragment ,
  xtd::net::sockets::add_source_membership ,
  xtd::net::sockets::drop_source_membership ,
  xtd::net::sockets::block_source ,
  xtd::net::sockets::unblock_source ,
  xtd::net::sockets::packet_information ,
  xtd::net::sockets::hop_limit ,
  xtd::net::sockets::ip_protection_level ,
  xtd::net::sockets::ip_v6_only ,
  xtd::net::sockets::no_delay ,
  xtd::net::sockets::bsd_urgent ,
  xtd::net::sockets::expedited ,
  xtd::net::sockets::no_checksum ,
  xtd::net::sockets::checksum_coverage ,
  xtd::net::sockets::update_accept_context ,
  xtd::net::sockets::update_connect_context
}
 Defines configuration option names. More...
 
enum class  xtd::net::sockets::socket_shutdown {
  xtd::net::sockets::receive ,
  xtd::net::sockets::send ,
  xtd::net::sockets::both
}
 Defines constants that are used by the xtd::net::sockets::socket::shutdown method. More...
 
enum class  xtd::net::sockets::socket_type {
  xtd::net::sockets::unknown ,
  xtd::net::sockets::stream ,
  xtd::net::sockets::dgram ,
  xtd::net::sockets::raw ,
  xtd::net::sockets::rdm ,
  xtd::net::sockets::seqpacket
}
 Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents. More...
 
enum class  xtd::diagnostics::source_levels {
  xtd::diagnostics::all ,
  xtd::diagnostics::off ,
  xtd::diagnostics::critical ,
  xtd::diagnostics::error ,
  xtd::diagnostics::warning ,
  xtd::diagnostics::information ,
  xtd::diagnostics::verbose ,
  xtd::diagnostics::activity_tracing
}
 Specifies the levels of trace messages filtered by the source switch and event type filter. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::string_comparison {
  xtd::ordinal ,
  xtd::ordinal_ignore_case
}
 Specifies the culture, case, and sort rules to be used by certain overloads of the xtd::ustring::compare method. More...
 
enum class  xtd::string_split_options {
  xtd::none ,
  xtd::remove_empty_entries
}
 Specifies whether applicable xtd::ustring::split method overloads include or omit empty substrings from the return value. More...
 
enum class  xtd::diagnostics::trace_event_type {
  xtd::diagnostics::critical ,
  xtd::diagnostics::error ,
  xtd::diagnostics::warning ,
  xtd::diagnostics::information ,
  xtd::diagnostics::verbose ,
  xtd::diagnostics::start ,
  xtd::diagnostics::stop ,
  xtd::diagnostics::suspend ,
  xtd::diagnostics::resume ,
  xtd::diagnostics::transfer
}
 Identifies the type of event that has caused the trace. More...
 
enum class  xtd::diagnostics::trace_level {
  xtd::diagnostics::off ,
  xtd::diagnostics::error ,
  xtd::diagnostics::warning ,
  xtd::diagnostics::info ,
  xtd::diagnostics::verbose
}
 Specifies what messages to output for the debug, trace and trace_switch classes. More...
 
enum class  xtd::diagnostics::trace_options {
  xtd::diagnostics::none ,
  xtd::diagnostics::logical_operation_stack ,
  xtd::diagnostics::date_time ,
  xtd::diagnostics::timestamp ,
  xtd::diagnostics::process_id ,
  xtd::diagnostics::thread_id ,
  xtd::diagnostics::callstack
}
 Specifies trace data options to be written to the trace output. More...
 
enum class  xtd::net::sockets::transmit_file_options {
  xtd::net::sockets::use_default_worker_thread ,
  xtd::net::sockets::disconnect ,
  xtd::net::sockets::reuse_socket ,
  xtd::net::sockets::write_behind ,
  xtd::net::sockets::use_system_thread ,
  xtd::net::sockets::use_kernel_apc
}
 The TransmitFileOptions enumeration defines values used in file transfer requests. More...
 

Functions

template<typename new_type_t >
new_type_t xtd::as (bool value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (byte_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char16_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char16_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char32_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char32_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char8_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char8_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char16_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char32_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char8_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
const new_type_t & xtd::as (const current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
const new_type_t * xtd::as (const current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::shared_ptr< new_type_t > xtd::as (const std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::u16string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::u32string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::u8string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::wstring &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const wchar_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
new_type_t & xtd::as (current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
new_type_t * xtd::as (current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (decimal_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (double value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (float value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (int16_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (int32_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (int64_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (llong_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (sbyte_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::any value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::shared_ptr< new_type_t > xtd::as (std::shared_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::shared_ptr< new_type_t > xtd::as (std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::u16string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::u32string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::u8string &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::unique_ptr< new_type_t > xtd::as (std::unique_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::unique_ptr< new_type_t > xtd::as (std::unique_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::wstring &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (uint16_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (uint32_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (uint64_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (ullong_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (wchar_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (wchar_t value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (bool value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (byte_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char16_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char16_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char32_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char32_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char8_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char8_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (decimal_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (double value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (float value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (int16_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (int32_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (int64_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (llong_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (std::any value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (uint16_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (uint32_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (uint64_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (ullong_t value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (wchar_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (bool value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const char *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (double value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (float value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (std::any value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
byte_t xtd::as< byte_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (bool value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (byte_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char16_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char16_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char32_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char32_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char8_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char8_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (decimal_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (double value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (float value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (int16_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (int32_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (int64_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (llong_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (std::any value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (uint16_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (uint32_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (uint64_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (ullong_t value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (wchar_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (bool value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const char *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (double value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (float value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (std::any value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
char16_t xtd::as< char16_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (bool value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const char *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (double value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (float value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (std::any value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
char32_t xtd::as< char32_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (bool value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const char *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (double value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (float value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (std::any value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
char8_t xtd::as< char8_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (bool value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const char *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (double value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (float value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (std::any value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
decimal_t xtd::as< decimal_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (bool value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (byte_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char16_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char16_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char32_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char32_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char8_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char8_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (decimal_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (double value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (float value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (int16_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (int32_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (int64_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (llong_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (std::any value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (uint16_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (uint32_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (uint64_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (ullong_t value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (wchar_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (bool value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (byte_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char16_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char16_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char32_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char32_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char8_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char8_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (decimal_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (double value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (float value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (int16_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (int32_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (int64_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (llong_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (std::any value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (uint16_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (uint32_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (uint64_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (ullong_t value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (wchar_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (bool value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const char *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (double value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (float value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (std::any value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
int16_t xtd::as< int16_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (bool value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const char *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (double value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (float value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (std::any value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
int32_t xtd::as< int32_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (bool value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const char *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (double value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (float value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (std::any value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
int64_t xtd::as< int64_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (bool value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const char *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (double value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (float value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (std::any value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
llong_t xtd::as< llong_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (bool value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const char *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (double value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (float value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (std::any value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
sbyte_t xtd::as< sbyte_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char16_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char32_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char8_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char16_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char32_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char8_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char16_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char32_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char8_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char16_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char32_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char8_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char16_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char32_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char8_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (bool value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const char *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (double value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (float value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (std::any value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
uint16_t xtd::as< uint16_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (bool value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const char *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (double value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (float value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (std::any value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
uint32_t xtd::as< uint32_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (bool value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const char *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (double value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (float value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (std::any value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
uint64_t xtd::as< uint64_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (bool value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const char *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (const xtd::ustring &value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (double value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (float value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (std::any value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
ullong_t xtd::as< ullong_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (bool value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (byte_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (byte_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char16_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char32_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char8_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (decimal_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (double value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (float value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int16_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int16_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int32_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int32_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int64_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int64_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (llong_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (llong_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (sbyte_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (std::any value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint16_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint16_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint32_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint32_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint64_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint64_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (ullong_t value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (ullong_t value, byte_t from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (wchar_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (bool value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (byte_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char16_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char16_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char32_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char32_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char8_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (char8_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const char *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const std::string &value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (decimal_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (double value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (float value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (int16_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (int32_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (int64_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (llong_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (sbyte_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (std::any value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (uint16_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (uint32_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (uint64_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (ullong_t value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
wchar_t xtd::as< wchar_t > (wchar_t value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char16_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char32_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char8_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char16_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char32_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char8_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const wchar_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (wchar_t *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (xtd::ustring &value)
 Casts a type into another type. More...
 
std::ostream xtd::cnull (nullptr)
 Provides a null std::ostream. More...
 
std::ostream xtd::ctrace (nullptr)
 Provides an std::ostream for xtd::diagnostics::trace. More...
 
template<typename type_t , typename param_t >
bool xtd::is (const param_t &value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t , typename param_t >
bool xtd::is (const param_t *value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t , typename param_t >
bool xtd::is (param_t &value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t , typename param_t >
bool xtd::is (param_t *value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t >
bool xtd::is (std::any value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename new_type_t , typename current_type_t >
bool xtd::is (std::shared_ptr< current_type_t > &value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< bool > (bool value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< decimal_t > (decimal_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< double > (double value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< float > (float value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< int16_t > (int16_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< int32_t > (int32_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< int64_t > (int64_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< int8_t > (int8_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< llong_t > (llong_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< std::any > (std::any value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< uint16_t > (uint16_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< uint32_t > (uint32_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< uint64_t > (uint64_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< uint8_t > (uint8_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< ullong_t > (ullong_t value)
 Checks if the result of an expression is compatible with a given type. More...
 
byte_t xtd::operator""_b (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
byte_t xtd::operator""_b (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
byte_t xtd::operator""_b (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
byte_t xtd::operator""_b (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
byte_t xtd::operator""_b (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
byte_t xtd::operator""_b (long double n)
 Used to convert specified value into byte. More...
 
byte_t xtd::operator""_b (unsigned long long n)
 Used to convert specified value into byte. More...
 
char32_t xtd::operator""_c (char c)
 Used to convert specified value into char32._t. More...
 
char32_t xtd::operator""_c (char16_t c)
 Used to convert specified value into char32._t. More...
 
char32_t xtd::operator""_c (char32_t c)
 Used to convert specified value into char32._t. More...
 
char32_t xtd::operator""_c (unsigned long long c)
 Used to convert specified value into char32._t. More...
 
char32_t xtd::operator""_c (wchar_t c)
 Used to convert specified value into char32._t. More...
 
double xtd::operator""_d (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
double xtd::operator""_d (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
double xtd::operator""_d (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
double xtd::operator""_d (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
double xtd::operator""_d (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
double xtd::operator""_d (long double n)
 Used to convert specified value into byte. More...
 
double xtd::operator""_d (unsigned long long n)
 Used to convert specified value into byte. More...
 
float xtd::operator""_f (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
float xtd::operator""_f (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
float xtd::operator""_f (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
float xtd::operator""_f (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
float xtd::operator""_f (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
float xtd::operator""_f (long double n)
 Used to convert specified value into byte. More...
 
float xtd::operator""_f (unsigned long long n)
 Used to convert specified value into byte. More...
 
xtd::ustring xtd::operator""_s (const char *s, size_t n)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_s (const char16_t *s, size_t n)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_s (const char32_t *s, size_t n)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_s (const char8_t *s, size_t n)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_s (const wchar_t *s, size_t n)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_s (long double s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_s (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
int16_t xtd::operator""_s16 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
int16_t xtd::operator""_s16 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int16_t xtd::operator""_s16 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int16_t xtd::operator""_s16 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int16_t xtd::operator""_s16 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int16_t xtd::operator""_s16 (long double n)
 Used to convert specified value into byte. More...
 
int16_t xtd::operator""_s16 (unsigned long long n)
 Used to convert specified value into byte. More...
 
int32_t xtd::operator""_s32 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
int32_t xtd::operator""_s32 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int32_t xtd::operator""_s32 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int32_t xtd::operator""_s32 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int32_t xtd::operator""_s32 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int32_t xtd::operator""_s32 (long double n)
 Used to convert specified value into byte. More...
 
int32_t xtd::operator""_s32 (unsigned long long n)
 Used to convert specified value into byte. More...
 
int64_t xtd::operator""_s64 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
int64_t xtd::operator""_s64 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int64_t xtd::operator""_s64 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int64_t xtd::operator""_s64 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int64_t xtd::operator""_s64 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int64_t xtd::operator""_s64 (long double n)
 Used to convert specified value into byte. More...
 
int64_t xtd::operator""_s64 (unsigned long long n)
 Used to convert specified value into byte. More...
 
int8_t xtd::operator""_s8 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
int8_t xtd::operator""_s8 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int8_t xtd::operator""_s8 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int8_t xtd::operator""_s8 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int8_t xtd::operator""_s8 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
int8_t xtd::operator""_s8 (long double n)
 Used to convert specified value into byte. More...
 
int8_t xtd::operator""_s8 (unsigned long long n)
 Used to convert specified value into byte. More...
 
xtd::ustring xtd::operator""_sb (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sb16 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sb2 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sb32 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sb4 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sb64 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sb8 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sx (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sX (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sx2 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sX2 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sx4 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sX4 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sx8 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
xtd::ustring xtd::operator""_sX8 (unsigned long long s)
 Used to convert specified value into xtd::ustring. More...
 
const char * xtd::operator""_t (const char *s, size_t n)
 Used to translate specified string into locale. More...
 
xtd::ustring xtd::operator""_t (const char16_t *s, size_t n)
 Used to translate specified string into locale. More...
 
xtd::ustring xtd::operator""_t (const char32_t *s, size_t n)
 Used to translate specified string into locale. More...
 
xtd::ustring xtd::operator""_t (const char8_t *s, size_t n)
 Used to translate specified string into locale. More...
 
xtd::ustring xtd::operator""_t (const wchar_t *s, size_t n)
 Used to translate specified string into locale. More...
 
uint16_t xtd::operator""_u16 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
uint16_t xtd::operator""_u16 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint16_t xtd::operator""_u16 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint16_t xtd::operator""_u16 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint16_t xtd::operator""_u16 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint16_t xtd::operator""_u16 (long double n)
 Used to convert specified value into byte. More...
 
uint16_t xtd::operator""_u16 (unsigned long long n)
 Used to convert specified value into byte. More...
 
uint32_t xtd::operator""_u32 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
uint32_t xtd::operator""_u32 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint32_t xtd::operator""_u32 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint32_t xtd::operator""_u32 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint32_t xtd::operator""_u32 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint32_t xtd::operator""_u32 (long double n)
 Used to convert specified value into byte. More...
 
uint32_t xtd::operator""_u32 (unsigned long long n)
 Used to convert specified value into byte. More...
 
uint64_t xtd::operator""_u64 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
uint64_t xtd::operator""_u64 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint64_t xtd::operator""_u64 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint64_t xtd::operator""_u64 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint64_t xtd::operator""_u64 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint64_t xtd::operator""_u64 (long double n)
 Used to convert specified value into byte. More...
 
uint64_t xtd::operator""_u64 (unsigned long long n)
 Used to convert specified value into byte. More...
 
uint8_t xtd::operator""_u8 (const char *s, size_t n)
 Used to convert specified value into byte. More...
 
uint8_t xtd::operator""_u8 (const char16_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint8_t xtd::operator""_u8 (const char32_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint8_t xtd::operator""_u8 (const char8_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint8_t xtd::operator""_u8 (const wchar_t *s, size_t n)
 Used to convert specified value into byte. More...
 
uint8_t xtd::operator""_u8 (long double n)
 Used to convert specified value into byte. More...
 
uint8_t xtd::operator""_u8 (unsigned long long n)
 Used to convert specified value into byte. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str)
 Convert a type into a string. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, const std::string &fmt)
 Convert a type into a string. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, number_styles)
 Convert a type into a string. More...
 
template<typename value_t >
value_t xtd::parse (const std::u16string &str)
 Convert a type into a string. More...
 
template<typename value_t >
value_t xtd::parse (const std::u32string &str)
 Convert a type into a string. More...
 
template<typename value_t >
value_t xtd::parse (const std::wstring &str)
 Convert a type into a string. More...
 
template<>
bool xtd::parse< bool > (const std::string &str)
 Convert a type into a string. More...
 
template<>
char xtd::parse< char > (const std::string &str)
 Convert a type into a string. More...
 
template<>
char xtd::parse< char > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
double xtd::parse< double > (const std::string &str)
 Convert a type into a string. More...
 
template<>
double xtd::parse< double > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
float xtd::parse< float > (const std::string &str)
 Convert a type into a string. More...
 
template<>
float xtd::parse< float > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
int xtd::parse< int > (const std::string &str)
 Convert a type into a string. More...
 
template<>
int xtd::parse< int > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
int8_t xtd::parse< int8_t > (const std::string &str)
 Convert a type into a string. More...
 
template<>
int8_t xtd::parse< int8_t > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
long xtd::parse< long > (const std::string &str)
 Convert a type into a string. More...
 
template<>
long xtd::parse< long > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
long double xtd::parse< long double > (const std::string &str)
 Convert a type into a string. More...
 
template<>
long double xtd::parse< long double > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
long long xtd::parse< long long > (const std::string &str)
 Convert a type into a string. More...
 
template<>
long long xtd::parse< long long > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
short xtd::parse< short > (const std::string &str)
 Convert a type into a string. More...
 
template<>
short xtd::parse< short > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
std::string xtd::parse< std::string > (const std::string &str)
 Convert a type into a string. More...
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str)
 Convert a type into a string. More...
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str)
 Convert a type into a string. More...
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str)
 Convert a type into a string. More...
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str)
 Convert a type into a string. More...
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str)
 Convert a type into a string. More...
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str, number_styles styles)
 Convert a type into a string. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t * xtd::convert_pointer::to_ptr (const current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t * xtd::convert_pointer::to_ptr (const current_type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static const type_t * xtd::convert_pointer::to_ptr (const type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t * xtd::convert_pointer::to_ptr (current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t * xtd::convert_pointer::to_ptr (current_type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t * xtd::convert_pointer::to_ptr (type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t & xtd::convert_pointer::to_ref (const current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t & xtd::convert_pointer::to_ref (const current_type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static const type_t & xtd::convert_pointer::to_ref (const type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static const type_t & xtd::convert_pointer::to_ref (const type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t & xtd::convert_pointer::to_ref (current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t & xtd::convert_pointer::to_ref (current_type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t & xtd::convert_pointer::to_ref (type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t & xtd::convert_pointer::to_ref (type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::shared_ptr< new_type_t > xtd::convert_pointer::to_shared_ptr (const std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::shared_ptr< new_type_t > xtd::convert_pointer::to_shared_ptr (std::shared_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::shared_ptr< new_type_t > xtd::convert_pointer::to_shared_ptr (std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::to_string (const bool &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const bool &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char16_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char16_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char32_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char32_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char8_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char8_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const double &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const double &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const float &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const float &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const int &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const int &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const int8_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const int8_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const long double &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const long double &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const long long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const long long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const short &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const short &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename type_t , typename Period >
std::string xtd::to_string (const std::chrono::duration< type_t, Period > &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename type_t , typename Period >
std::wstring xtd::to_string (const std::chrono::duration< type_t, Period > &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const std::chrono::system_clock::time_point &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const std::chrono::system_clock::time_point &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const std::tm &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const std::tm &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const std::wstring &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned char &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned char &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned int &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned int &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned long long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned long long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned short &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned short &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename value_t >
std::string xtd::to_string (const value_t &value, const std::string &fmt)
 Convert a specified value into a string with specified format. More...
 
template<typename value_t >
std::string xtd::to_string (const value_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename value_t >
std::wstring xtd::to_string (const value_t &value, const std::wstring &fmt)
 Convert a specified value into a string with specified format. More...
 
template<typename value_t >
std::wstring xtd::to_string (const value_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const wchar_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const wchar_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename new_type_t , typename current_type_t >
static std::unique_ptr< new_type_t > xtd::convert_pointer::to_unique_ptr (std::unique_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::unique_ptr< new_type_t > xtd::convert_pointer::to_unique_ptr (std::unique_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value)
 Convert a type into a string. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value)
 Convert a type into a string. More...
 
template<typename ... Args>
void xtd::unused (Args &&... args)
 It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated. More...
 

Variables

std::ostream cdebug & xtd::__cdebugstreambuf__
 Provides an std::ostream for xtd::diagnostics::debug. More...
 

Macro Definition Documentation

◆ add_last_arg_to_command_

#define add_last_arg_to_command_ (   command,
  last_arg,
  ... 
)

#include <xtd.core/include/xtd/add_last_arg_to_command.h>

Adds last argument to a command with variadic arguments.

Parameters
commandThe variadic arguments command.
last_argThe last argument to add to variadic arguments
...Variadic arguments.
Namespace
xtd
Library
xtd.core
Remarks
This macro is use specifically for add current stack frame to but not only.
Warning
The variadic arguments is limited to maximum 10 arguments.
See also
assert_ or cassert_ macro for example of use.

◆ const_overload_

#define const_overload_

#include <xtd.core/include/xtd/overload.h>

Helper keyword that use to determine one of const overloaded methods.

Namespace
xtd
Library
xtd.core

◆ non_const_overload_

#define non_const_overload_

#include <xtd.core/include/xtd/overload.h>

Helper keyword that use to determine one of non const overloaded methods.

Namespace
xtd
Library
xtd.core

◆ overload_

#define overload_

#include <xtd.core/include/xtd/overload.h>

Helper keyword that use to determine one of const and non const overloaded methods.

Namespace
xtd
Library
xtd.core

Typedef Documentation

◆ action

template<typename... arguments_t>
using xtd::action = typedef delegate <void(arguments_t...)>

#include <xtd.core/include/xtd/action.h>

Represents a xtd::delegate that has variable parameters and does not return a value.

Namespace
xtd
Library
xtd.core

◆ async_callback

using xtd::async_callback = typedef delegate<void(std::shared_ptr<xtd::iasync_result> ar)>

#include <xtd.core/include/xtd/async_callback.h>

References a method to be called when a corresponding asynchronous operation completes.

Parameters
arThe result of the asynchronous operation.
Namespace
xtd
Library
xtd.core

◆ func

template<typename result_t , typename... arguments_t>
using xtd::func = typedef delegate<result_t(arguments_t...)>

#include <xtd.core/include/xtd/func.h>

Represents a delegate that has variables parameters and returns a value of the type specified by the result_t type.

Namespace
xtd
Library
xtd.core

◆ predicate

template<typename type_t >
using xtd::predicate = typedef delegate<bool(type_t)>

#include <xtd.core/include/xtd/predicate.h>

Represents a delegate that defines a set of criteria and determines whether the specified object meets those criteria.

Namespace
xtd
Library
xtd.core

Enumeration Type Documentation

◆ address_family

#include <xtd.core/include/xtd/net/sockets/address_family.h>

Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.

Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
unknown 

Unknown address family.

unspecified 

Unspecified address family.

unix 

Unix local to host address.

inter_network 

Address for IP version 4.

imp_link 

ARPANET IMP address.

pup 

Address for PUP protocols.

chaos 

Address for MIT CHAOS protocols.

ns 

Address for Xerox NS protocols.

ipx 

IPX or SPX address.

iso 

Address for ISO protocols.

osi 

Address for OSI protocols.

ecma 

European Computer Manufacturers Association (ECMA) address.

data_kit 

Address for Datakit protocols.

ccitt 

Addresses for CCITT protocols, such as X.25.

sna 

IBM SNA address.

dec_net 

DECnet address.

data_link 

Direct data-link interface address.

lat 

LAT address.

hyper_channel 

NSC Hyperchannel address.

apple_talk 

AppleTalk address.

net_bios 

NetBios address.

voice_view 

VoiceView address.

fire_fox 

FireFox address.

banyan 

Banyan address.

atm 

Native ATM services address.

inter_network_v6 

Address for IP version 6.

cluster 

Address for Microsoft cluster products.

ieee12844 

IEEE 1284.4 workgroup address.

irda 

IrDA address.

network_designers 

Address for Network Designers OSI gateway-enabled protocols.

max 

MAX address.

◆ architecture_id

enum xtd::architecture_id
strong

#include <xtd.core/include/xtd/architecture_id.h>

Identifies the processor architecture, supported by an assembly.

Namespace
xtd
Library
xtd.core
See also
operating_system
Enumerator
unknown 

The processor architecture is unknown.

x86 

The processor architecture is x86 (Intel or amd).

arm 

The processor architecture is ARM.

◆ assert_dialog_result

#include <xtd.core/include/xtd/diagnostics/assert_dialog_result.h>

Specifies identifiers to indicate the return value of an assert dialog box.

Namespace
xtd::diagnostics
Library
xtd.core
Remarks
The xtd::diagnostics::debug::show_assert_dialog method use this enumeration.
Enumerator
abort 

The assert dialog return value is Abort (usually sent from a button labeled Abort).

retry 

The assert dialog return value is Retry (usually sent from a button labeled Retry).

ignore 

The assert dialog return value is Ignore (usually sent from a button labeled Ignore).

◆ build_type

enum xtd::build_type
strong

#include <xtd.core/include/xtd/build_type.h>

Identifies the build type.

Namespace
xtd
Library
xtd.core
See also
compiler
Enumerator
debug 

Build type debug.

release 

Build type release.

◆ compiler_id

enum xtd::compiler_id
strong

#include <xtd.core/include/xtd/compiler_id.h>

Identifies the compiler, supported by an assembly.

Namespace
xtd
Library
xtd.core
See also
compiler
Enumerator
unknown 

The compiler is unknown.

microsoft_visual_studio 

The compiler is Microsoft Visual Studio.

clang 

The compiler is clang.

gcc 

The compiler is gcc.

◆ console_color

enum xtd::console_color
strong

#include <xtd.core/include/xtd/console_color.h>

Specifies constants that define foreground and background colors for the console.

Namespace
xtd
Library
xtd.core
See also
console
Enumerator
black 

The color black.

dark_blue 

The color dark blue.

dark_green 

The color dark green.

dark_cyan 

The color dark cyan (dark blue-green).

dark_red 

The color dark red.

dark_magenta 

The color dark magenta (dark purplish-red).

dark_yellow 

The color dark yellow (ochre).

gray 

The color gray.

dark_gray 

The color dark gray.

blue 

The color blue.

green 

The color green.

cyan 

The color cyan (blue-green).

red 

The color red.

magenta 

The color magenta (purplish red).

yellow 

The color yellow.

white 

The color white.

◆ console_key

enum xtd::console_key
strong

#include <xtd.core/include/xtd/console_key.h>

Specifies the standard keys on a console.

Namespace
xtd
Library
xtd.core
See also
Console
Enumerator
backspace 

The BACKSPACE key.

tab 

The TAB key.

clear 

The CLEAR key.

enter 

The ENTER key.

pause 

The PAUSE key.

caps_lock 

The CapsLock key.

escape 

The ESC (ESCAPE) key.

spacebar 

The SPACEBAR key.

page_up 

The PAGE UP key.

page_down 

The PAGE DOWN key.

end 

The END key.

home 

The HOME key.

left_arrow 

The LEFT ARROW key.

up_arrow 

The UP ARROW key.

right_arrow 

The RIGHT ARROW key.

down_arrow 

The DOWN ARROW key.

select 

The SELECT key.

print 

The PRINT key.

execute 

The EXECUTE key.

print_screen 

The PRINT SCREEN key.

insert 

The INS (INSERT) key.

del 

The DEL (DELETE) key.

help 

The HELP key.

d0 

The 0 key.

d1 

The 1 key.

d2 

The 2 key.

d3 

The 3 key.

d4 

The 4 key.

d5 

The 5 key.

d6 

The 6 key.

d7 

The 7 key.

d8 

The 8 key.

d9 

The 9 key.

The A key.

The B key.

The C key.

The D key.

The E key.

The F key.

The G key.

The H key.

The I key.

The J key.

The K key.

The L key.

The M key.

The N key.

The O key.

The P key.

The Q key.

The R key.

The S key.

The T key.

The U key.

The V key.

The W key.

The X key.

The Y key.

The Z key.

left_windows 

The left Windows logo key (Microsoft Natural Keyboard).

right_windows 

The right Windows logo key (Microsoft Natural Keyboard).

applications 

The Application key (Microsoft Natural Keyboard).

sleep 

The Computer Sleep key.

num_pad_0 

The 0 key on the numeric keypad.

num_pad_1 

The 1 key on the numeric keypad.

num_pad_2 

The 2 key on the numeric keypad.

num_pad_3 

The 3 key on the numeric keypad.

num_pad_4 

The 4 key on the numeric keypad.

num_pad_5 

The 5 key on the numeric keypad.

num_pad_6 

The 6 key on the numeric keypad.

num_pad_7 

The 7 key on the numeric keypad.

num_pad_8 

The 8 key on the numeric keypad.

num_pad_9 

The 9 key on the numeric keypad.

multiply 

The Multiply key.

add 

The Add key.

separator 

The Separator key.

subtract 

The Subtract key.

decimal 

The Decimal key.

divide 

The Divide key.

f1 

The F1 key.

f2 

The F2 key.

f3 

The F3 key.

f4 

The F4 key.

f5 

The F5 key.

f6 

The F6 key.

f7 

The F7 key.

f8 

The F8 key.

f9 

The F9 key.

f10 

The F10 key.

f11 

The F11 key.

f12 

The F12 key.

f13 

The F13 key.

f14 

The F14 key.

f15 

The F15 key.

f16 

The F16 key.

f17 

The F17 key.

f18 

The F18 key.

f19 

The F19 key.

f20 

The F20 key.

f21 

The F21 key.

f22 

The F22 key.

f23 

The F23 key.

f24 

The F24 key.

browser_back 

The Browser Back key (Windows 2000 or later).

browser_forward 

The Browser Forward key (Windows 2000 or later).

browser_refresh 

The Browser Refresh key (Windows 2000 or later).

browser_stop 

The Browser Stop key (Windows 2000 or later).

browser_search 

The Browser Search key (Windows 2000 or later).

browser_favorites 

The Browser Favorite key (Windows 2000 or later).

browser_home 

The Browser Home key (Windows 2000 or later).

volume_mute 

The Volume Mute key (Microsoft Natural Keyboard, Windows 2000 or later).

volume_down 

The Volume Down key (Microsoft Natural Keyboard, Windows 2000 or later).

volume_up 

The Volume Up key (Microsoft Natural Keyboard, Windows 2000 or later).

media_next 

The Media Next Track key (Microsoft Natural Keyboard, Windows 2000 or later).

media_previous 

The Media Previous Track key (Microsoft Natural Keyboard, Windows 2000 or later).

media_stop 

The Media Stop key (Microsoft Natural Keyboard, Windows 2000 or later).

media_play 

The Media Play/Pause key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_mail 

The Start Mail key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_media_select 

The Select Media key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_app1 

The Start Application 1 key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_app2 

The Start Application 2 key (Microsoft Natural Keyboard, Windows 2000 or later).

oem1 

The OEM 1 key (OEM specific).

oem_plus 

The OEM Plus key on any country/region keyboard (Windows 2000 or later).

oem_comma 

The OEM Comma key on any country/region keyboard (Windows 2000 or later).

oem_minus 

The OEM Minus key on any country/region keyboard (Windows 2000 or later).

oem_period 

The OEM Period key on any country/region keyboard (Windows 2000 or later).

oem2 

The OEM 2 key (OEM specific).

oem3 

The OEM " key (OEM specific).

oem4 

The OEM 4 key (OEM specific).

oem5 

The OEM 5 key (OEM specific).

oem6 

The OEM 6 key (OEM specific).

oem7 

The OEM 7 key (OEM specific).

oem8 

The OEM 8 key (OEM specific).

oem102 

The OEM 102 key (OEM specific).

process 

The IME PROCESS key.

packet 

The PACKET key (used to pass Unicode characters with keystrokes).

attention 

The ATTN key.

cr_sel 

The CRSEL (CURSOR SELECT) key.

ex_sel 

The EXSEL (EXTEND SELECTION) key.

erase_end_of_file 

The ERASE EOF key.

play 

The Play key.

zoom 

The ZOOM key.

no_name 

A constant reserved for future use.

pa1 

The PA1 key.

oem_clear 

The CLEAR key (OEM specific).

◆ console_modifiers

#include <xtd.core/include/xtd/console_modifiers.h>

Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard.

Namespace
xtd
Library
xtd.core
See also
Console
Enumerator
alt 

The left or right ALT modifier key.

shift 

The left or right SHIFT modifier key.

control 

The left or right CTRL modifier key.

◆ console_special_key

#include <xtd.core/include/xtd/console_special_key.h>

Specifies combinations of modifier and console keys that can interrupt the current process.

Namespace
xtd
Library
xtd.core
Remarks
The ConsoleCancelEventArgs::SpecialKey property returns the console_special_key enumeration type.
Simultaneously pressing certain key combinations signals the operating system to interrupt the currently running process. The two valid key combinations are console_modifiers::control plus BREAK (CTRL+BREAK) and console_modifiers::Control plus console_key.c (CTRL+C).
Enumerator
control_break 

The console_modifiers::control modifier key plus the BREAK console key.

control_c 

The console_modifiers::control modifier key plus the console_key C console key.

control_backslash 

The console_modifiers::control modifier key plus the console_key \ console key.

control_z 

The console_modifiers::control modifier key plus the console_key Z console key.

◆ environment_variable_target

#include <xtd.core/include/xtd/environment_variable_target.h>

Specifies the location where an environment variable is stored or retrieved in a set or get operation.

Namespace
xtd
Library
xtd.core
Enumerator
process 

The environment variable is stored or retrieved from the environment block associated with the current process.

user 

The environment variable is stored or retrieved from the HKEY_CURRENT_USER\Environment key in the Windows operating system registry.

machine 

The environment variable is stored or retrieved from the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment key in the Windows operating system registry.

◆ file_access

enum xtd::io::file_access
strong

#include <xtd.core/include/xtd/io/file_access.h>

Defines constants for read, write, or read/write access to a file. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Library
xtd.core
Enumerator
read 

Read access to the file. Data can be read from the file. Combine with Write for read/write access.

write 

Write access to the file. Data can be written to the file. Combine with Read for read/write access.

read_write 

The file is a read_write file. The file is part of the operating read_write or is used exclusively by the operating read_write.

◆ file_attributes

#include <xtd.core/include/xtd/io/file_attributes.h>

Provides attributes for files and directories.

Namespace
xtd::io
Library
xtd.core
Enumerator
read_only 

The file is read-only.

hidden 

The file is hidden, and thus is not included in an ordinary directory listing.

system 

The file is a system file. The file is part of the operating system or is used exclusively by the operating system.

directory 

The file is a directory.

archive 

The file's archive status. Applications use this attribute to mark files for backup or removal.

device 

Reserved for future use.

normal 

The file is normal and has no other attributes set. This attribute is valid only if used alone.

temporary 

The file is temporary. File systems attempt to keep all of the data in memory for quicker access rather than flushing the data back to mass storage. A temporary file should be deleted by the application as soon as it is no longer needed.

sparse_file 

The file is a sparse file. Sparse files are typically large files whose data are mostly zeros.

reparse_point 

The file contains a reparse point, which is a block of user-defined data associated with a file or a directory.

compressed 

The file is compressed.

offline 

The file is offline. The data of the file is not immediately available.

not_content_indexed 

The file will not be indexed by the operating system's content indexing service.

encrypted 

The file or directory is encrypted. For a file, this means that all data in the file is encrypted. For a directory, this means that encryption is the default for newly created files and directories.

◆ io_control_code

enum xtd::net::sockets::io_control_code : uint64_t
strong

#include <xtd.core/include/xtd/net/sockets/io_control_code.h>

Specifies the IO control codes supported by the xtd::net::sockets::socket::io_control method.

Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
enable_circular_queuing 

Replace the oldest queued datagram with an incoming datagram when the incoming message queues are full. This value is equal to the Winsock†2 SIO_ENABLE_CIRCULAR_QUEUEING constant.

flush 

Discard the contents of the sending queue. This value is equal to the Winsock†2 SIO_FLUSH constant.

address_list_change 

Enable receiving notification when the list of local interfaces for the socket's protocol family changes. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_ADDRESS_LIST_CHANGE constant.

data_to_read 

Return the number of bytes available for reading. This value is equal to the Winsock†2 FIONREAD constant.

oob_data_read 

Return information about out-of-band data waiting to be received. When using this control code on stream sockets, the return value indicates the number of bytes available.

get_broadcast_address 

Return a SOCKADDR structure that contains the broadcast address for the address family of the current socket. The returned address can be used with the Overload:System::Net::Sockets::Socket.SendTo method. This value is equal to the Winsock†2 SIO_GET_BROADCAST_ADDRESS constant. This value can be used on User Datagram Protocol (UDP) sockets only.

address_list_query 

Return the list of local interfaces that the socket can bind to. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_ADDRESS_LIST_QUERY constant.

query_target_pnp_handle 

Retrieve the underlying provider's SOCKET handle. This handle can be used to receive plug-and-play event notification. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_QUERY_TARGET_PNP_HANDLE constant.

async_io 

Enable notification for when data is waiting to be received. This value is equal to the Winsock†2 FIOASYNC constant.

non_blocking_io 

Control the blocking behavior of the socket. If the argument specified with this control code is zero, the socket is placed in blocking mode. If the argument is nonzero, the socket is placed in nonblocking mode. This value is equal to the Winsock†2 FIONBIO constant.

associate_handle 

Associate this socket with the specified handle of a companion interface. Refer to the appropriate protocol-specific annex in the Winsock†2 reference or documentation for the particular companion interface for additional details. It is recommended that the Component object Model (COM) be used instead of this IOCTL to discover and track other interfaces that might be supported by a socket. This control code is present for backward compatibility with systems where COM is not available or cannot be used for some other reason. This value is equal to the Winsock†2 SIO_ASSOCIATE_HANDLE constant.

multipoint_loopback 

Control whether multicast data sent by the socket appears as incoming data in the sockets receive queue. This value is equal to the Winsock†2 SIO_MULTIPOINT_LOOPBACK constant.

multicast_scope 

Control the number of times a multicast packet can be forwarded by a router, also known as the Time to Live (TTL), or hop count. This value is equal to the Winsock†2 SIO_MULTICAST_SCOPE constant.

set_qos 

Set the Quality of Service (QOS) attributes for the socket. QOS defines the bandwidth requirements for the socket. This control code is supported on Windows Me, Windows 2000, and later operating systems. This value is equal to the Winsock†2 SIO_SET_QOS constant.

set_group_qos 

Set the Quality of Service (QOS) attributes for the socket group. This value is reserved for future use and is equal to the Winsock†2 SIO_SET_GROUP_QOS constant.

routing_interface_change 

Enable receiving notification when the local interface used to access a remote endpoint changes. This value is equal to the Winsock†2 SIO_ROUTING_INTERFACE_CHANGE constant.

namespace_change 

Control whether the socket receives notification when a namespace query becomes invalid. This control code is supported on Windows XP and later operating systems. This value is equal to the Winsock†2 SIO_NSP_NOTIFY_CHANGE constant.

receive_all 

Enable receiving all IPv4 packets on the network. The socket must have address family System::Net::Sockets::AddressFamily.InterNetwork, the socket type must be System::Net::Sockets::SocketType.Raw, and the protocol type must be System::Net::Sockets::ProtocolType.IP. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_RCVALL constant.

receive_all_multicast 

Enable receiving all multicast IPv4 packets on the network. These are packets with destination addresses in the range 224.0.0.0 through 239.255.255.255. The socket must have address family System::Net::Sockets::AddressFamily.InterNetwork, the socket type must be System::Net::Sockets::SocketType.Raw, and the protocol type must be System::Net::Sockets::ProtocolType.Udp. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_RCVALL_MCAST constant.

receive_all_igmp_multicast 

Enable receiving all Internet Group Management Protocol (IGMP) packets on the network. The socket must have address family System::Net::Sockets::AddressFamily.InterNetwork, the socket type must be System::Net::Sockets::SocketType.Raw, and the protocol type must be System::Net::Sockets::ProtocolType.Igmp. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_RCVALL_IGMPMCAST constant.

keep_alive_values 

Control sending TCP keep-alive packets and the interval at which they are sent. This control code is supported on Windows 2000 and later operating systems. For additional information, see RFC 1122 section 4.2.3.6. This value is equal to the Winsock†2 SIO_KEEPALIVE_VALS constant.

absorb_router_alert 

This value is equal to the Winsock†2 SIO_ABSORB_RTRALERT constant.

unicast_interface 

Set the interface used for outgoing unicast packets. This value is equal to the Winsock†2 SIO_UCAST_IF constant.

limit_broadcasts 

This value is equal to the Winsock†2 SIO_LIMIT_BROADCASTS constant.

bind_to_interface 

Bind the socket to a specified interface index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_BIND constant.

multicast_interface 

Set the interface used for outgoing multicast packets. The interface is identified by its index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_MCASTIF constant.

add_multicast_group_on_interface 

Join a multicast group using an interface identified by its index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_ADD_MCAST constant.

delete_multicast_group_from_interface 

Remove the socket from a multicast group. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_ADD_MCAST constant.

get_extension_function_pointer 

Obtain provider-specific functions that are not part of the Winsock specification. Functions are specified using their provider-assigned GUID. This value is equal to the Winsock†2 SIO_GET_EXTENSION_FUNCTION_POINTER constant.

get_qos 

Retrieve the QOS structure associated with the socket. This control is only supported on platforms that provide a QOS capable transport (Windows Me, Windows 2000, and later.) This value is equal to the Winsock†2 SIO_GET_QOS constant.

get_group_qos 

Return the Quality of Service (QOS) attributes for the socket group. This value is reserved for future use, and is equal to the Winsock†2 SIO_GET_GROUP_QOS constant.

translate_handle 

Return a handle for the socket that is valid in the context of a companion interface. This value is equal to the Winsock†2 SIO_TRANSLATE_HANDLE constant.

routing_interface_query 

Return the interface addresses that can be used to connect to the specified remote address. This value is equal to the Winsock†2 SIO_ROUTING_INTERFACE_QUERY constant.

address_list_sort 

Sort the structure returned by the System::Net::Sockets::IOControlCode.AddressListQuery field and add scope ID information for IPv6 addresses. This control code is supported on Windows XP and later operating systems. This value is equal to the Winsock†2 SIO_ADDRESS_LIST_SORT constant.

◆ ip_protection_level

#include <xtd.core/include/xtd/net/sockets/ip_protection_level.h>

A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.

Namespace
xtd::net::sockets
Library
xtd.core
Remarks
This option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This socket option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required.
Enumerator
unspecified 

The IP protection level is unspecified. On Windows 7 and Windows Server 2008 R2, the default value for the IP Protection level on a socket is unspecified.

unrestricted 

The IP protection level is unrestricted. This value would be used by applications designed to operate across the Internet, including applications taking advantage of IPv6 NAT traversal capabilities built into Windows (Teredo, for example). These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2008 R2 and Windows Vista, the default value for the IP Protection level on a socket is unrestricted.

edge_restricted 

The IP protection level is edge restricted. This value would be used by applications designed to operate across the Internet. This setting does not allow Network Address Translation (NAT) traversal using the Windows Teredo implementation. These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2003 and Windows XP, the default value for the IP Protection level on a socket is edge restricted.

restricted 

The IP protection level is restricted. This value would be used by intranet applications that do not implement Internet scenarios. These applications are generally not tested or hardened against Internet-style attacks. This setting will limit the received traffic to link-local only.

◆ language_id

enum xtd::language_id
strong

#include <xtd.core/include/xtd/language_id.h>

Identifies the c++ language used by assembly.

Namespace
xtd
Library
xtd.core
See also
operating_system
Enumerator
unknown 

The language is unknown.

cpp_pre98 

The language is pre 98.

cpp98 

The language is c++98.

cpp11 

The language is c++11.

cpp14 

The language is c++14.

cpp17 

The language is c++17.

cpp20 

The language is c++20.

◆ number_styles

enum xtd::number_styles
strong

#include <xtd.core/include/xtd/number_styles.h>

Determines the styles permitted in numeric string arguments that are passed to the xtd::parse and xtd::try_parse methods of the integral and floating-point numeric types. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Namespace
xtd
Library
xtd.core
Enumerator
none 

Indicates that no style elements, such as leading or trailing white space, thousands separators, or a decimal separator, can be present in the parsed string. The string to be parsed must consist of integral decimal digits only.

allow_leading_white 

Indicates that leading white-space characters can be present in the parsed string. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020. Note that this is a subset of the characters for which the std::isspace(char) method returns true.

allow_trailing_white 

Indicates that trailing white-space characters can be present in the parsed string. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020. Note that this is a subset of the characters for which the std::isspace(char) method returns true.

allow_leading_sign 

Indicates that the numeric string can have a leading sign.

allow_trailing_sign 

Indicates that the numeric string can have a trailing sign. Valid trailing sign characters are determined by the positive_sign and negative_sign properties.

allow_parentheses 

Indicates that the numeric string can have one pair of parentheses enclosing the number. The parentheses indicate that the string to be parsed represents a negative number.

allow_decimal_point 

Indicates that the numeric string can have a decimal point. If the number_styles value includes the allow_currency_symbol flag and the parsed string includes a currency symbol, the decimal separator character is determined by the std::use_facet<std::numpunct<char>>(std::locale()).decimal_point() method.

allow_thousands 

Indicates that the numeric string can have group separators, such as symbols that separate hundreds from thousands. If the number_styles value includes the allow_currency_symbol flag and the string to be parsed includes a currency symbol, the valid group separator character is determined by the currency_group_separator property, and the number of digits in each group is determined by the currency_Group_sizes property. Otherwise, the valid group separator character is determined by the number_group_separator property, and the number of digits in each group is determined by the number_group_sizes property.

allow_exponent 

Indicates that the numeric string can be in exponential notation. The allow_exponent flag allows the parsed string to contain an exponent that begins with the "E" or "e" character and that is followed by an optional positive or negative sign and an integer. In other words, it successfully parses strings in the form nnnExx, nnnE+xx, and nnnE-xx. It does not allow a decimal separator or sign in the significand or mantissa; to allow these elements in the string to be parsed, use the allow_decimal_point and allow_leading_sign flags, or use a composite style that includes these individual flags.

allow_currency_symbol 

Indicates that the numeric string can contain a currency symbol. Valid currency symbols are determined by the std::use_facet<std::moneypunct<char>>(std::locale()).curr_symbol() method.

allow_hex_specifier 

Indicates that the numeric string represents a hexadecimal value. Valid hexadecimal values include the numeric digits 0-9 and the hexadecimal digits A-F and a-f. Strings that are parsed using this style can be prefixed with "0x". A string that is parsed with the allow_hex_specifier style will always be interpreted as a hexadecimal value. The only flags that can be combined with allow_hex_specifier are allow_leading_white and allow_trailing_white. The number_styles enumeration includes a composite style, hex_number, that consists of these three flags.

allow_binary_specifier 

Indicates that the numeric string represents a binary value. Valid binary values include the numeric digits 0 and 1. Strings that are parsed using this style can be prefixed with "0b". A string that is parsed with the allow_binary_specifier style will always be interpreted as a binary value. The only flags that can be combined with allow_binary_specifier are allow_leading_white and allow_trailing_white. The number_styles enumeration includes a composite style, binary_number, that consists of these three flags.

allow_octal_specifier 

Indicates that the numeric string represents a octal value. Valid octal values include the numeric digits 0-7. Strings that are parsed using this style can be prefixed with "0". A string that is parsed with the allow_octal_specifier style will always be interpreted as an octal value. The only flags that can be combined with allow_octal_specifier are allow_leading_white and allow_trailing_white. The number_styles enumeration includes a composite style, octal_number, that consists of these three flags.

integer 

Indicates that the allow_leading_white, allow_trailing_white, and allow_leading_sign styles are used. This is a composite number style.

number 

Indicates that the allow_leading_white, allow_trailing_white, allow_leading_sign, allow_trailing_sign, allow_decimal_point, and allow_thousands styles are used. This is a composite number style.

fixed_point 

Indicates that the allow_leading_white, allow_trailing_white, allow_leading_sign, allow_decimal_point, and allow_exponent styles are used. This is a composite number style.

currency 

Indicates that all styles except allow_exponent, allow_hex_specifier, allow_binary_specifier and allow_octal_specifier are used. This is a composite number style.

any 

Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifier are used. This is a composite number style.

hex_number 

Indicates that the allow_leading_white, allow_trailing_white, and allow_hex_specifier styles are used. This is a composite number style.

binary_number 

Indicates that the allow_leading_white, allow_trailing_white, and allow_binary_specifier styles are used. This is a composite number style.

octal_number 

Indicates that the allow_leading_white, allow_trailing_white, and allow_octal_specifier styles are used. This is a composite number style.

◆ platform_id

enum xtd::platform_id
strong

#include <xtd.core/include/xtd/platform_id.h>

Identifies the operating system, or platform, supported by an assembly.

Namespace
xtd
Library
xtd.core
See also
operating_system
Enumerator
unknown 

The operating system is unknown.

win32s 

The operating system is Win32s. Win32s is a layer that runs on 16-bit versions of Windows to provide access to 32-bit applications.

win32_windows 

The operating system is Windows 95 or Windows 98.

win32_nt 

The operating system is Windows NT or later.

win_ce 

The operating system is Windows CE.

unix 

The operating system is Unix.

xbox 

The development platform is Xbox 360.

macos 

The operating system is Macintosh.

ios 

The operating system is IOs Apple.

android 

The operating system is Android.

◆ process_priority_class

#include <xtd.core/include/xtd/diagnostics/process_priority_class.h>

Indicates the priority that the system associates with a process. This value, together with the priority value of each thread of the process, determines each thread's base priority level.

Namespace
xtd::diagnostics
Library
xtd.core
Remarks
A process priority class encompasses a range of thread priority levels. Threads with different priorities running in the process run relative to the process's priority class. The operating system uses the base-priority level of all executable threads to determine which thread gets the next slice of processor time.
Win32 uses four priority classes with seven base priority levels per class. Based on time elapsed or other boosts, the operating system can change the base priority level when a process needs to be put ahead of others for access to the processor. In addition, you can set PriorityBoostEnabled to temporarily boost the priority level of threads that have been taken out of the wait state. The priority is reset when the process returns to the wait state.
Enumerator
normal 

Specifies that the process has no special scheduling needs.

idle 

Specifies that the threads of this process run only when the system is idle, such as a screen saver. The threads of the process are preempted by the threads of any process running in a higher priority class. This priority class is inherited by child processes.

high 

Specifies that the process performs time-critical tasks that must be executed immediately, such as the Task List dialog, which must respond quickly when called by the user, regardless of the load on the operating system. The threads of the process preempt the threads of normal or idle priority class processes. Use extreme care when specifying High for the process's priority class, because a high priority class application can use nearly all available processor time.

real_time 

Specifies that the process has the highest possible priority. The threads of a process with RealTime priority preempt the threads of all other processes, including operating system processes performing important tasks. Thus, a RealTime priority process that executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be unresponsive.

below_normal 

Specifies that the process has priority above Idle but below Normal.

above_normal 

Specifies that the process has priority higher than Normal but lower than High.

◆ process_window_style

#include <xtd.core/include/xtd/diagnostics/process_window_style.h>

Specified how a new window should appear when the system starts a process.

Namespace
xtd::diagnostics
Library
xtd.core
Enumerator
normal 

The normal, visible window style. The system displays a window with Normal style on the screen, in a default location. If a window is visible, the user can supply input to the window and view the window's output. Frequently, an application may initialize a new window to the Hidden style while it customizes the window's appearance, and then make the window style Normal.

hidden 

The hidden window style. A window can be either visible or hidden. The system displays a hidden window by not drawing it. If a window is hidden, it is effectively disabled. A hidden window can process messages from the system or from other windows, but it cannot process input from the user or display output. Frequently, an application may keep a new window hidden while it customizes the window's appearance, and then make the window style Normal. To use process_window_style.Hidden, the ProcessStartInfo.UseShellExecute property must be false.

minimized 

The minimized window style. By default, the system reduces a minimized window to the size of its taskbar button and moves the minimized window to the taskbar.

maximized 

The maximized window style. By default, the system enlarges a maximized window so that it fills the screen or, in the case of a child window, the parent window's client area. If the window has a title bar, the system automatically moves it to the top of the screen or to the top of the parent window's client area. Also, the system disables the window's sizing border and the window-positioning capability of the title bar so that the user cannot move the window by dragging the title bar.

◆ protocol_family

#include <xtd.core/include/xtd/net/sockets/protocol_family.h>

Specifies the type of protocol that an instance of the xtd::net::sockets::socket class can use.

Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
unknown 

Unknown protocol.

unspecified 

Unspecified protocol.

unix 

Unix local to host protocol.

inter_network 

IP version 4 protocol.

imp_link 

ARPANET IMP protocol.

pup 

PUP protocols.

chaos 

MIT CHAOS protocols.

ns 

Xerox NS protocols.

ipx 

IPX or SPX protocol.

iso 

ISO protocols.

osi 

OSI protocols.

ecma 

European Computer Manufacturers Association (ECMA) protocol.

data_kit 

Datakit protocols.

ccitt 

CCITT protocols, such as X.25.

sna 

IBM SNA protocol.

dec_net 

DECnet protocol.

data_link 

Direct data-link interface protocol.

lat 

LAT protocol.

hyper_channel 

NSC Hyperchannel protocol.

apple_talk 

AppleTalk protocol.

net_bios 

NetBios protocol.

voice_view 

VoiceView protocol.

fire_fox 

FireFox protocol.

banyan 

Banyan protocol.

atm 

Native ATM services protocol.

inter_network_v6 

IP version 6 protocol.

cluster 

Microsoft cluster products protocol.

ieee12844 

IEEE 1284.4 workgroup protocol.

irda 

IrDA protocol.

network_designers 

Network Designers OSI gateway-enabled protocol.

max 

MAX protocol.

◆ protocol_type

#include <xtd.core/include/xtd/net/sockets/protocol_type.h>

Specifies the protocols that the xtd::net::sockets::socket class supports.

Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
unknown 

Specifies an unknown protocol.

ip_v6_hop_by_hop_options 

IPv6 Hop by Hop Options header.

unspecified 

Unspecified Protocol.

ip 

Internet Protocol.

icmp 

Internet Control Message Protocol.

igmp 

Internet Group Management Protocol.

ggp 

Gateway To Gateway Protocol.

ip_v4 

Internet Protocol version 4.

tcp 

Transmission Control Protocol.

pup 

PARC Universal Packet Protocol.

udp 

User Datagram Protocol.

idp 

Internet Datagram Protocol.

ip_v6 

Internet Protocol version 6 (IPv6).

ip_v6_routing_header 

IPv6 Routing header.

ip_v6_fragment_header 

IPv6 Fragment header.

ip_sec_encapsulating_security_payload 

IPv6 Encapsulating Security Payload header.

ip_sec_authentication_header 

IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at http://www.ietf.org.

icmp_v6 

Internet Control Message Protocol for IPv6.

ip_v6_no_next_header 

IPv6 No next header.

ip_v6_destination_options 

IPv6 Destination Options header.

nd 

Net Disk Protocol (unofficial).

raw 

Raw IP packet protocol.

ipx 

Internet Packet Exchange Protocol.

spx 

Sequenced Packet Exchange protocol.

spx_2 

Sequenced Packet Exchange version 2 protocol.

◆ select_mode

#include <xtd.core/include/xtd/net/sockets/select_mode.h>

Defines the polling modes for the xtd::net::sockets::socket::poll method.

Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::select_mode enumeration defines the polling modes that can be passed to the xtd::net::sockets::socket::poll method. Use the xtd::net::sockets::select_mode::select_read value to determine if a listening xtd::net::sockets::socket has incoming connection requests. Use the xtd::net::sockets::select_mode::select_write value to determine if a xtd::net::sockets::socket is writeable. Use the xtd::net::sockets::select_mode::select_error value to determine if there is an error condition present on the xtd::net::sockets::socket. For explanations of writeability, readability, and the presence of error conditions, see the xtd::net::sockets::socket::poll method.
Enumerator
select_read 

Read status mode.

select_write 

Write status mode.

select_error 

Error status mode.

◆ socket_async_operation

#include <xtd.core/include/xtd/net/sockets/socket_async_operation.h>

The type of asynchronous socket operation most recently performed with this context object.

Namespace
xtd::net::sockets
Library
xtd.core
Remarks
This type describes the asynchronous socket operation that was most recently completed using a xtd::net::sockets::socket_async_event_args object. The value of the xtd::net::sockets::socket_async_event_args::last_operation property is set to xtd::net::sockets::socket_async_operation::none until the xtd::net::sockets::socket_async_event_args instance is used to begin an asynchronous socket operation. The property will then be set to the type of asynchronous operation being performed. This type more easily facilitates using a single completion callback delegate for multiple kinds of asynchronous socket operations. This type is intended for use in the socket_async_callback completion routine.
The xtd::net::sockets::socket_async_operation type is used by the xtd::net::sockets::socket_async_event_args::last_operation property.
Enumerator
none 

none of the socket operations.

accept 

A socket accept operation.

connect 

A socket connect operation.

disconnect 

A socket disconnect operation.

receive 

A socket receive operation.

receive_from 

A socket receive_from operation.

receive_message_from 

A socket receive_message_from operation.

send 

A socket send operation.

send_packets 

A socket send_packets operation.

send_to 

A socket send_to operation.

◆ socket_error

#include <xtd.core/include/xtd/net/sockets/socket_error.h>

Defines error codes for the xtd::net::sockets::socket class.

Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
sock_error 

An unspecified error occurred.

success 

Operation successful.

operation_aborted 

The overlapped operation was aborted due to the closure of the socket.

io_pending 

The application has initiated an overlapped operation that cannot be completed immediately.

interrupted 

A blocking call was canceled.

access_denied 

Access denied.

fault 

Invalid pointer address.

invalid_argument 

Invalid argument.

too_many_open_sockets 

Too many sockets opened.

would_block 

An operation on a nonblocking socket cannot be completed immediately.

in_progress 

A blocking operation is in progress.

already_in_progress 

The nonblocking socket has an operation in progress.

not_socket 

Operation attempted on a non-socket object.

destination_address_required 

Required destination missing.

message_size 

Datagram message is too long.

protocol_type 

The protocol type is incorrect.

protocol_option 

An unknown, invalid, or unsupported option or level was used.

protocol_not_supported 

The protocol is not implemented or has not been configured.

socket_not_supported 

The support for the specified socket type does not exist in this address family.

operation_not_supported 

The address family is not supported by the protocol family.

protocol_family_not_supported 

The protocol family is not implemented or has not been configured.

address_family_not_supported 

The address family specified is not supported. This error is returned if the IPv6 address family was specified and the IPv6 stack is not installed on the local machine. This error is returned if the IPv4 address family was specified and the IPv4 stack is not installed on the local machine.

address_already_in_use 

Only one use of an address is normally permitted.

address_not_available 

The selected IP address is not valid in this context.

network_down 

The network is not available.

network_unreachable 

No route to the remote host exists.

network_reset 

The application tried to set "keep alive" on a connection that timed out.

connection_aborted 

Connection aborted.

connection_reset 

Connection reset by the remote peer.

no_buffer_space_available 

No free buffer space available.

is_connected 

Already connected.

not_connected 

The socket is not connected.

shutdown 

A request to send or receive data was disallowed because the socket is closed.

timed_out 

The connection attempt timed out, or the connected host has failed to respond.

connection_refused 

The remote host is actively refusing a connection.

host_down 

The operation failed because the remote host is down.

host_unreachable 

There is no network route to the specified host.

process_limit 

Too many processes are using the underlying socket provider.

system_not_ready 

The network subsystem is unavailable.

version_not_supported 

The version of the underlying socket provider is out of range.

not_initialized 

The underlying socket provider has not been initialized.

disconnecting 

A graceful shutdown is in progress.

type_not_found 

The specified class was not found.

host_not_found 

No such host is known. The name is not an official host name or alias.

try_again 

The name of the host could not be resolved. Try again later.

no_recovery 

The error is unrecoverable or the requested database cannot be located.

no_data 

The requested name or IP address was not found on the name server.

◆ socket_flags

#include <xtd.core/include/xtd/net/sockets/socket_flags.h>

Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
none 

Use no flags for this call.

out_of_band 

Process out-of-band data.

peek 

Peek at the incoming message.

dont_route 

Send without using routing tables.

max_io_vector_length 

Provides a standard value for the number of WSABUF structures that are used to send and receive data.

truncated 

The message was too large to fit into the specified buffer and was truncated.

control_data_truncated 

Indicates that the control data did not fit into an internal 64-KB buffer and was truncated.

broadcast 

Indicates a broadcast packet.

multicast 

Indicates a multicast packet.

partial 

Partial send or receive for message.

◆ socket_information_options

#include <xtd.core/include/xtd/net/sockets/socket_information_options.h>

Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
none 

Use no flags for this call.

non_blocking 

The Socket is nonblocking.

connected 

The Socket is connected.

listening 

The Socket is listening for new connections.

use_only_overlapped_io 

The Socket uses overlapped I/O.

◆ socket_option_level

#include <xtd.core/include/xtd/net/sockets/socket_option_level.h>

Defines socket option levels for the xtd::net::sockets::socket::set_socket_option and xtd::net::sockets::socket::get_socket_option methods.

Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::socket_option_level enumeration defines the socket option levels that can be passed to the xtd::net::sockets::socket::set_socket_option and xtd::net::sockets::socket::get_socket_option methods. xtd::net::sockets::socket_option_name enumerated values are grouped by xtd::net::sockets::socket_option_level.
Enumerator
socket 

Socket options apply to all sockets.

ip 

Socket options apply only to IP sockets.

ip_v6 

Socket options apply only to IPv6 sockets.

tcp 

Socket options apply only to TCP sockets.

udp 

Socket options apply only to UDP sockets.

◆ socket_option_name

#include <xtd.core/include/xtd/net/sockets/socket_option_name.h>

Defines configuration option names.

Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::socket_option_name enumeration defines the name of each xtd::net::sockets::socket configuration option. Sockets can be configured with the xtd::net::sockets::socket::set_socket_option method.
Enumerator
debug 

Record debugging information.

accept_connection 

The socket is listening.

reuse_address 

Allows the socket to be bound to an address that is already in use.

keep_alive 

Use keep-alive.

dont_route 

Do not route; send the packet directly to the interface addresses.

broadcast 

Permit sending broadcast messages on the socket.

use_loopback 

Bypass hardware when possible.

linger 

Linger on close if unsent data is present.

out_of_band_inline 

Receives out-of-band data in the normal data stream.

dont_linger 

Close the socket gracefully without lingering.

exclusive_address_use 

Enables a socket to be bound for exclusive access.

send_buffer 

Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window.

receive_buffer 

Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.

send_low_water 

Specifies the low water mark for xtd::net::sockets::socket::send operations.

receive_low_water 

Specifies the low water mark for xtd::net::sockets::socket::receive operations.

send_timeout 

Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the xtd::net::sockets::socket::begin_send method.

receive_timeout 

Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the xtd::net::sockets::socket::begin_send method.

error 

Get the error status and clear.

type 

Get the socket type.

max_connections 

Not supported; will throw a xtd::net::sockets::socket_exception exception if used.

ip_options 

Specifies the IP options to be inserted into outgoing datagrams.

header_included 

Indicates that the application provides the IP header for outgoing datagrams.

type_of_service 

Change the IP header type of the service field.

ip_time_to_live 

Set the IP header Time-to-Live field.

multicast_interface 

Set the interface for outgoing multicast packets.

multicast_time_to_live 

An IP multicast Time to Live.

multicast_loopback 

An IP multicast loopback.

add_membership 

Add an IP group membership.

drop_membership 

Drop an IP group membership.

dont_fragment 

Do not fragment IP datagrams.

add_source_membership 

Join a source group.

drop_source_membership 

Drop a source group.

block_source 

Block data from a source.

unblock_source 

Unblock a previously blocked source.

packet_information 

Return information about received packets.

hop_limit 

Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet. This is similar to Time to Live (TTL) for Internet Protocol version 4.

ip_protection_level 

Enables restriction of a IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.This socket option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This socket option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required. This socket option has defined protection levels specified in the xtd::net::sockets::ip_protection_level enumeration.

ip_v6_only 

Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 communications only. Sockets created for the AF_INET6 address family may be used for both IPv6 and IPv4 communications. Some applications may want to restrict their use of a socket created for the AF_INET6 address family to IPv6 communications only. When this value is non-zero (the default on Windows), a socket created for the AF_INET6 address family can be used to send and receive IPv6 packets only. When this value is zero, a socket created for the AF_INET6 address family can be used to send and receive packets to and from an IPv6 address or an IPv4 address. Note that the ability to interact with an IPv4 address requires the use of IPv4 mapped addresses. This socket option is supported on Windows Vista or later.

no_delay 

Disables the Nagle algorithm for send coalescing.

bsd_urgent 

Use urgent data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.

expedited 

Use expedited data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.

no_checksum 

Send UDP datagrams with checksum set to zero.

checksum_coverage 

Set or get the UDP checksum coverage.

update_accept_context 

Updates an accepted socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_ACCEPT_CONTEXT socket option and is supported only on connection-oriented sockets.

update_connect_context 

Updates a connected socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_CONNECT_CONTEXT socket option and is supported only on connection-oriented sockets.

◆ socket_shutdown

#include <xtd.core/include/xtd/net/sockets/socket_shutdown.h>

Defines constants that are used by the xtd::net::sockets::socket::shutdown method.

Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::socket_shutdown enumeration defines the values that can be passed to the xtd::net::sockets::socket::shutdown method.
Enumerator
receive 

Disables a xtd::net::sockets::socket for receiving. This field is constant.

send 

Disables a xtd::net::sockets::socket for sending. This field is constant.

both 

Disables a xtd::net::sockets::socket for both sending and receiving. This field is constant.

◆ socket_type

#include <xtd.core/include/xtd/net/sockets/socket_type.h>

Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents.

Namespace
xtd::net::sockets
Library
xtd.core
Remarks
Before a xtd::net::sockets::socket can send and receive data, it must first be created using an xtd::net::sockets::address_family, a xtd::net::sockets::socket_type, and a xtd::net::sockets::protocol_type. The xtd::net::sockets::socket_type enumeration provides several options for defining the type of xtd::net::sockets::socket that you intend to open.
Note
xtd::net::sockets::socket_type will sometimes implicitly indicate which xtd::net::sockets::protocol_type will be used within an xtd::net::sockets::address_family. For example when the xtd::net::sockets::socket_type is xtd::net::sockets::socket_typedgram, the xtd::net::sockets::protocol_type is always xtd::net::sockets::protocol_type::udp. When the xtd::net::sockets::socket_type is xtd::net::sockets::socket_type::stream, the xtd::net::sockets::protocol_type is always xtd::net::sockets::protocol_type::tcp. If you try to create a xtd::net::sockets::socket with an incompatible combination, xtd::net::sockets::socket will throw a xtd::net::sockets::socket_exception.
Enumerator
unknown 

Specifies an unknown xtd::net::sockets::socket type.

stream 

Supports reliable, two-way, connection-based byte streams without the duplication of data and without preservation of boundaries. A xtd::net::sockets::socket of this type communicates with a single peer and requires a remote host connection before communication can begin. xtd::net::sockets::socket_types::stream uses the Transmission Control Protocol (xtd::net::sockets::protocol_type::tcp) and the xtd::net::sockets::address_family::inter_network address family.

dgram 

Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximum length. Messages might be lost or duplicated and might arrive out of order. A xtd::net::sockets::socket of type xtd::net::sockets::socket_type::dgram requires no connection prior to sending and receiving data, and can communicate with multiple peers. xtd::net::sockets::socket_type::dgram uses the Datagram Protocol (xtd::net::sockets::protocol_type::udp) and the xtd::net::sockets::address_family::inter_network address family.

raw 

Supports access to the underlying transport protocol. Using the xtd::net::sockets::socket_type::raw, you can communicate using protocols like Internet Control Message Protocol (xtd::net::sockets::protocol_type::icmp) and Internet Group Management Protocol (xtd::net::sockets::protocol_type::Igmp). Your application must provide a complete IP header when sending. Received datagrams return with the IP header and options intact.

rdm 

Supports connectionless, message-oriented, reliably delivered messages, and preserves message boundaries in data. xtd::net::sockets::socket_type::rdm (Reliably Delivered Messages) messages arrive unduplicated and in order. Furthermore, the sender is notified if messages are lost. If you initialize a xtd::net::sockets::socket using xtd::net::sockets::socket_type::rdm, you do not require a remote host connection before sending and receiving data. With xtd::net::sockets::socket_typerdm, you can communicate with multiple peers.

seqpacket 

Provides connection-oriented and reliable two-way transfer of ordered byte streams across a network. xtd::net::sockets::socket_type::seqpacket does not duplicate data, and it preserves boundaries within the data stream. A xtd::net::sockets::socket of type xtd::net::sockets::socket_type::seqpacket communicates with a single peer and requires a remote host connection before communication can begin.

◆ source_levels

#include <xtd.core/include/xtd/diagnostics/source_levels.h>

Specifies the levels of trace messages filtered by the source switch and event type filter. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Namespace
xtd::diagnostics
Library
xtd.core
Remarks
The source levels identify the trace_event_type events that are to be traced. The source_switch class uses the source_levels enumeration to define the event level of the trace message to use for filtering messages to send to the trace listener.
Enumerator
all 

Allows all events through.

off 

Does not allow any events through.

critical 

Allows only Critical events through.

error 

Allows critical and error events through.

warning 

Allows critical, error, and warning events through.

information 

Allows Critical, error, warning, and information events through.

verbose 

Allows critical, error, warning, information, and verbose events through.

activity_tracing 

Allows the stop, start, suspend, transfer, and resume events through.

◆ string_comparison

#include <xtd.core/include/xtd/string_comparison.h>

Specifies the culture, case, and sort rules to be used by certain overloads of the xtd::ustring::compare method.

Namespace
xtd
Library
xtd.core
See also
xtd::ustring
Enumerator
ordinal 

Compare strings using ordinal (binary) sort rules.

ordinal_ignore_case 

Compare strings using ordinal (binary) sort rules and ignoring the case of the strings being compared.

◆ string_split_options

#include <xtd.core/include/xtd/string_split_options.h>

Specifies whether applicable xtd::ustring::split method overloads include or omit empty substrings from the return value.

Namespace
xtd
Library
xtd.core
See also
xtd::ustring
Enumerator
none 

The return value includes array elements that contain an empty string.

remove_empty_entries 

The return value does not include array elements that contain an empty string.

◆ trace_event_type

#include <xtd.core/include/xtd/diagnostics/trace_event_type.h>

Identifies the type of event that has caused the trace.

Namespace
xtd::diagnostics
Library
xtd.core
See also
trace
Enumerator
critical 

Fatal error or application crash.

error 

Recoverable error.

warning 

Warning Noncritical problem.

information 

Informational message.

verbose 

Debugging trace.

start 

Starting of a logical operation.

stop 

Stopping of a logical operation.

suspend 

Suspension of a logical operation.

resume 

Resumption of a logical operation.

transfer 

Changing of correlation identity.

◆ trace_level

#include <xtd.core/include/xtd/diagnostics/trace_level.h>

Specifies what messages to output for the debug, trace and trace_switch classes.

Namespace
xtd::diagnostics
Library
xtd.core
Enumerator
off 

Output no tracing and debugging messages.

error 

Output error-handling messages.

warning 

Output warnings and error-handling messages.

info 

Output informational messages, warnings, and error-handling messages.

verbose 

Output all debugging and tracing messages.

◆ trace_options

#include <xtd.core/include/xtd/diagnostics/trace_options.h>

Specifies trace data options to be written to the trace output.

Namespace
xtd::diagnostics
Library
xtd.core
Remarks
This enumeration is used by trace listeners to determine which options, or elements, should be included in the trace output. Trace listeners store the trace options in the trace_output_options property.
Enumerator
none 

Do not write any elements.

logical_operation_stack 

Write the logical operation stack, which is represented by the return value of the CorrelationManager.LogicalOperationStack property.

date_time 

Write the date and time.

timestamp 

Write the timestamp, which is represented by the return value of the GetTimestamp method.

process_id 

Write the process identity, which is represented by the return value of the Process.Id property.

thread_id 

Write the thread identity, which is represented by the return value of the Thread.ManagedThreadId property for the current thread.

callstack 

Write the call stack, which is represented by the return value of the Environment.StackTrace property.

◆ transmit_file_options

#include <xtd.core/include/xtd/net/sockets/transmit_file_options.h>

The TransmitFileOptions enumeration defines values used in file transfer requests.

Remarks
This enumeration has a flags attribute that allows a bitwise combination of its member values.
Namespace
xtd::net::sockets
Library
xtd.core
Note
The flags xtd::net::sockets::transmit_file_options::disconnect and xtd::net::sockets::transmit_file_options::reuse_socket return the socket to a disconnected, reusable state after the file has been transmitted. These flags should not be used on a socket where quality of service (QOS) has been requested, because the service provider might immediately delete any quality of service associated with the socket before the file transfer has completed. The best approach for a QOS-enabled socket is to call xtd::net::sockets::socket::close when the file transfer has completed, rather than relying on these flags.
Enumerator
use_default_worker_thread 

Use the default thread to process long file transfer requests.

disconnect 

Start a transport-level disconnect after all the file data has been queued for transmission. When used with xtd::net::sockets::transmit_file_options::reuse_socket, these flags return the socket to a disconnected, reusable state after the file has been transmitted.

reuse_socket 

The socket handle may be reused when the request completes. This flag is valid only if xtd::net::sockets::transmit_file_options::disconnect is also specified. When used with xtd::net::sockets::transmit_file_options::disconnect, these flags return the socket to a disconnected, reusable state after the file has been transmitted.

write_behind 

Complete the file transfer request immediately, without pending. If this flag is specified and the file transfer succeeds, the data has been accepted by the system but not necessarily acknowledged by the remote end. Do not use this flag with the xtd::net::sockets::transmit_file_options::disconnect and xtd::net::sockets::transmit_file_options::reuse_socket flags.

use_system_thread 

Use system threads to process long file transfer requests.

use_kernel_apc 

Use kernel asynchronous procedure calls (APCs) instead of worker threads to process long file transfer requests. Long requests are defined as requests that require more than a single read from the file or a cache; the request therefore depends on the size of the file and the specified length of the send packet.

Function Documentation

◆ as() [1/51]

template<typename new_type_t >
new_type_t xtd::as ( bool  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int result = as<int>(value);

◆ as() [2/51]

template<typename new_type_t >
new_type_t xtd::as ( byte_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
float result = as<float>(value);
float as< float >(std::any value)
Casts a type into another type.
Definition: as.h:6915

◆ as() [3/51]

template<typename new_type_t >
new_type_t xtd::as ( char *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [4/51]

template<typename new_type_t >
new_type_t xtd::as ( char  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int result = as<int>(value);

◆ as() [5/51]

template<typename new_type_t >
new_type_t xtd::as ( char16_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"Gammasoft";
intptr_t result = as<intptr_t>(value);
@ u
The U key.

◆ as() [6/51]

template<typename new_type_t >
new_type_t xtd::as ( char16_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u'a';
int result = as<int>(value);

◆ as() [7/51]

template<typename new_type_t >
new_type_t xtd::as ( char32_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [8/51]

template<typename new_type_t >
new_type_t xtd::as ( char32_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = U'a';
int result = as<int>(value);

◆ as() [9/51]

template<typename new_type_t >
new_type_t xtd::as ( char8_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [10/51]

template<typename new_type_t >
new_type_t xtd::as ( char8_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
int result = as<int>(value);

◆ as() [11/51]

template<typename new_type_t >
new_type_t xtd::as ( const char *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [12/51]

template<typename new_type_t >
new_type_t xtd::as ( const char16_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [13/51]

template<typename new_type_t >
new_type_t xtd::as ( const char32_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [14/51]

template<typename new_type_t >
new_type_t xtd::as ( const char8_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [15/51]

template<typename new_type_t , typename current_type_t >
const new_type_t& xtd::as ( const current_type_t &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control& result = as<xtd::forms::control>(*value);
Represents a Windows button control.
Definition: button.h:54
@ control
The left or right CTRL modifier key.
@ button
The appearance of a button.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [16/51]

template<typename new_type_t , typename current_type_t >
const new_type_t* xtd::as ( const current_type_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = as<xtd::forms::control>(value);

◆ as() [17/51]

template<typename new_type_t , typename current_type_t >
std::shared_ptr<new_type_t> xtd::as ( const std::shared_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [18/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [19/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::u16string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [20/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::u32string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [21/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::u8string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [22/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::wstring &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [23/51]

template<typename new_type_t >
new_type_t xtd::as ( const wchar_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [24/51]

template<typename new_type_t >
new_type_t xtd::as ( const xtd::ustring value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
object result = as<object>(value);

◆ as() [25/51]

template<typename new_type_t , typename current_type_t >
new_type_t& xtd::as ( current_type_t &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control& result = as<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [26/51]

template<typename new_type_t , typename current_type_t >
new_type_t* xtd::as ( current_type_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = as<xtd::forms::control>(value);

◆ as() [27/51]

template<typename new_type_t >
new_type_t xtd::as ( decimal_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.0l;
int result = as<int>(value);

◆ as() [28/51]

template<typename new_type_t >
new_type_t xtd::as ( double  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.0;
int result = as<int>(value);

◆ as() [29/51]

template<typename new_type_t >
new_type_t xtd::as ( float  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.0f;
int result = as<int>(value);

◆ as() [30/51]

template<typename new_type_t >
new_type_t xtd::as ( int16_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
float result = as<float>(value);

◆ as() [31/51]

template<typename new_type_t >
new_type_t xtd::as ( int32_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
float result = as<float>(value);

◆ as() [32/51]

template<typename new_type_t >
new_type_t xtd::as ( int64_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42;
float result = as<float>(value);

◆ as() [33/51]

template<typename new_type_t >
new_type_t xtd::as ( llong_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42;
float result = as<float>(value);

◆ as() [34/51]

template<typename new_type_t >
new_type_t xtd::as ( sbyte_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42;
float result = as<float>(value);

◆ as() [35/51]

template<typename new_type_t >
new_type_t xtd::as ( std::any  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = 42;
int result = as<int>(value);

◆ as() [36/51]

template<typename new_type_t , typename current_type_t >
std::shared_ptr<new_type_t> xtd::as ( std::shared_ptr< current_type_t > &&  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [37/51]

template<typename new_type_t , typename current_type_t >
std::shared_ptr<new_type_t> xtd::as ( std::shared_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::shared_ptr<control> result = as<xtd::forms::control>(std::make_shared<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [38/51]

template<typename new_type_t >
new_type_t xtd::as ( std::string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [39/51]

template<typename new_type_t >
new_type_t xtd::as ( std::u16string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [40/51]

template<typename new_type_t >
new_type_t xtd::as ( std::u32string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [41/51]

template<typename new_type_t >
new_type_t xtd::as ( std::u8string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [42/51]

template<typename new_type_t , typename current_type_t >
std::unique_ptr<new_type_t> xtd::as ( std::unique_ptr< current_type_t > &&  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<control> result = as<xtd::forms::control>(std::make_unique<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [43/51]

template<typename new_type_t , typename current_type_t >
std::unique_ptr<new_type_t> xtd::as ( std::unique_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<button> value = std::make_unique<xtd::forms::button>();
std::unique_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [44/51]

template<typename new_type_t >
new_type_t xtd::as ( std::wstring &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core

◆ as() [45/51]

template<typename new_type_t >
new_type_t xtd::as ( uint16_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42;
float result = as<float>(value);

◆ as() [46/51]

template<typename new_type_t >
new_type_t xtd::as ( uint32_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42;
float result = as<float>(value);

◆ as() [47/51]

template<typename new_type_t >
new_type_t xtd::as ( uint64_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42;
float result = as<float>(value);

◆ as() [48/51]

template<typename new_type_t >
new_type_t xtd::as ( ullong_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42;
float result = as<float>(value);

◆ as() [49/51]

template<typename new_type_t >
new_type_t xtd::as ( wchar_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"Gammasoft";
intptr_t result = as<intptr_t>(value);

◆ as() [50/51]

template<typename new_type_t >
new_type_t xtd::as ( wchar_t  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = L'a';
int result = as<int>(value);

◆ as() [51/51]

template<typename new_type_t >
new_type_t xtd::as ( xtd::ustring value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
object result = as<object>(value);

◆ as< bool >() [1/36]

template<>
bool xtd::as< bool > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
bool result = as<bool>(value);
bool as< bool >(std::any value)
Casts a type into another type.
Definition: as.h:865

◆ as< bool >() [2/36]

template<>
bool xtd::as< bool > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
bool result = as<bool>(value);

◆ as< bool >() [3/36]

template<>
bool xtd::as< bool > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
bool result = as<bool>(value);

◆ as< bool >() [4/36]

template<>
bool xtd::as< bool > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
bool result = as<bool>(value);

◆ as< bool >() [5/36]

template<>
bool xtd::as< bool > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [6/36]

template<>
bool xtd::as< bool > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
bool result = as<bool>(value);

◆ as< bool >() [7/36]

template<>
bool xtd::as< bool > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [8/36]

template<>
bool xtd::as< bool > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
bool result = as<bool>(value);

◆ as< bool >() [9/36]

template<>
bool xtd::as< bool > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
bool result = as<bool>(value);

◆ as< bool >() [10/36]

template<>
bool xtd::as< bool > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
bool result = as<bool>(value);

◆ as< bool >() [11/36]

template<>
bool xtd::as< bool > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
bool result = as<bool>(value);

◆ as< bool >() [12/36]

template<>
bool xtd::as< bool > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [13/36]

template<>
bool xtd::as< bool > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [14/36]

template<>
bool xtd::as< bool > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
bool result = as<bool>(value);

◆ as< bool >() [15/36]

template<>
bool xtd::as< bool > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
bool result = as<bool>(value);

◆ as< bool >() [16/36]

template<>
bool xtd::as< bool > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [17/36]

template<>
bool xtd::as< bool > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [18/36]

template<>
bool xtd::as< bool > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
bool result = as<bool>(value);

◆ as< bool >() [19/36]

template<>
bool xtd::as< bool > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
bool result = as<bool>(value);

◆ as< bool >() [20/36]

template<>
bool xtd::as< bool > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
bool result = as<bool>(value);

◆ as< bool >() [21/36]

template<>
bool xtd::as< bool > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
bool result = as<bool>(value);

◆ as< bool >() [22/36]

template<>
bool xtd::as< bool > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
bool result = as<bool>(value);

◆ as< bool >() [23/36]

template<>
bool xtd::as< bool > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
bool result = as<bool>(value);

◆ as< bool >() [24/36]

template<>
bool xtd::as< bool > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
bool result = as<bool>(value);

◆ as< bool >() [25/36]

template<>
bool xtd::as< bool > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
bool result = as<bool>(value);

◆ as< bool >() [26/36]

template<>
bool xtd::as< bool > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
bool result = as<bool>(value);

◆ as< bool >() [27/36]

template<>
bool xtd::as< bool > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
bool result = as<bool>(value);

◆ as< bool >() [28/36]

template<>
bool xtd::as< bool > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
bool result = as<bool>(value);

◆ as< bool >() [29/36]

template<>
bool xtd::as< bool > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
bool result = as<bool>(value);

◆ as< bool >() [30/36]

template<>
bool xtd::as< bool > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
bool result = as<bool>(value);

◆ as< bool >() [31/36]

template<>
bool xtd::as< bool > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
bool result = as<bool>(value);

◆ as< bool >() [32/36]

template<>
bool xtd::as< bool > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
bool result = as<bool>(value);

◆ as< bool >() [33/36]

template<>
bool xtd::as< bool > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
bool result = as<bool>(value);

◆ as< bool >() [34/36]

template<>
bool xtd::as< bool > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
bool result = as<bool>(value);

◆ as< bool >() [35/36]

template<>
bool xtd::as< bool > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
bool result = as<bool>(value);

◆ as< bool >() [36/36]

template<>
bool xtd::as< bool > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
bool result = as<bool>(value);

◆ as< byte_t >() [1/37]

template<>
byte_t xtd::as< byte_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
byte_t result = as<byte_t>(value);
byte_t as< byte_t >(std::any value)
Casts a type into another type.
Definition: as.h:1535

◆ as< byte_t >() [2/37]

template<>
byte_t xtd::as< byte_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [3/37]

template<>
byte_t xtd::as< byte_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [4/37]

template<>
byte_t xtd::as< byte_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [5/37]

template<>
byte_t xtd::as< byte_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [6/37]

template<>
byte_t xtd::as< byte_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [7/37]

template<>
byte_t xtd::as< byte_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [8/37]

template<>
byte_t xtd::as< byte_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [9/37]

template<>
byte_t xtd::as< byte_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [10/37]

template<>
byte_t xtd::as< byte_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [11/37]

template<>
byte_t xtd::as< byte_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [12/37]

template<>
byte_t xtd::as< byte_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [13/37]

template<>
byte_t xtd::as< byte_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [14/37]

template<>
byte_t xtd::as< byte_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [15/37]

template<>
byte_t xtd::as< byte_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [16/37]

template<>
byte_t xtd::as< byte_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [17/37]

template<>
byte_t xtd::as< byte_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [18/37]

template<>
byte_t xtd::as< byte_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [19/37]

template<>
byte_t xtd::as< byte_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [20/37]

template<>
byte_t xtd::as< byte_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [21/37]

template<>
byte_t xtd::as< byte_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a byte.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [22/37]

template<>
byte_t xtd::as< byte_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a byte.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
byte_t result = as<byte_t>(value, 16);

◆ as< byte_t >() [23/37]

template<>
byte_t xtd::as< byte_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [24/37]

template<>
byte_t xtd::as< byte_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [25/37]

template<>
byte_t xtd::as< byte_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [26/37]

template<>
byte_t xtd::as< byte_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [27/37]

template<>
byte_t xtd::as< byte_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [28/37]

template<>
byte_t xtd::as< byte_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [29/37]

template<>
byte_t xtd::as< byte_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [30/37]

template<>
byte_t xtd::as< byte_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [31/37]

template<>
byte_t xtd::as< byte_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [32/37]

template<>
byte_t xtd::as< byte_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [33/37]

template<>
byte_t xtd::as< byte_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [34/37]

template<>
byte_t xtd::as< byte_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [35/37]

template<>
byte_t xtd::as< byte_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [36/37]

template<>
byte_t xtd::as< byte_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
byte_t result = as<byte_t>(value);

◆ as< byte_t >() [37/37]

template<>
byte_t xtd::as< byte_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
byte_t result = as<byte_t>(value);

◆ as< char >() [1/36]

template<>
char xtd::as< char > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char result = as<char>(value);
char as< char >(std::any value)
Casts a type into another type.
Definition: as.h:2225

◆ as< char >() [2/36]

template<>
char xtd::as< char > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
char result = as<char>(value);

◆ as< char >() [3/36]

template<>
char xtd::as< char > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char result = as<char>(value);

◆ as< char >() [4/36]

template<>
char xtd::as< char > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char result = as<char>(value);

◆ as< char >() [5/36]

template<>
char xtd::as< char > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
char result = as<char>(value);

◆ as< char >() [6/36]

template<>
char xtd::as< char > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
char result = as<char>(value);

◆ as< char >() [7/36]

template<>
char xtd::as< char > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
char result = as<char>(value);

◆ as< char >() [8/36]

template<>
char xtd::as< char > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
char result = as<char>(value);

◆ as< char >() [9/36]

template<>
char xtd::as< char > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
char result = as<char>(value);

◆ as< char >() [10/36]

template<>
char xtd::as< char > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
char result = as<char>(value);

◆ as< char >() [11/36]

template<>
char xtd::as< char > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char result = as<char>(value);

◆ as< char >() [12/36]

template<>
char xtd::as< char > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
char result = as<char>(value);

◆ as< char >() [13/36]

template<>
char xtd::as< char > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
char result = as<char>(value);

◆ as< char >() [14/36]

template<>
char xtd::as< char > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
char result = as<char>(value);

◆ as< char >() [15/36]

template<>
char xtd::as< char > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char result = as<char>(value);

◆ as< char >() [16/36]

template<>
char xtd::as< char > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char result = as<char>(value);

◆ as< char >() [17/36]

template<>
char xtd::as< char > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char result = as<char>(value);

◆ as< char >() [18/36]

template<>
char xtd::as< char > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char result = as<char>(value);

◆ as< char >() [19/36]

template<>
char xtd::as< char > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char result = as<char>(value);

◆ as< char >() [20/36]

template<>
char xtd::as< char > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
char result = as<char>(value);

◆ as< char >() [21/36]

template<>
char xtd::as< char > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char result = as<char>(value);

◆ as< char >() [22/36]

template<>
char xtd::as< char > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
char result = as<char>(value);

◆ as< char >() [23/36]

template<>
char xtd::as< char > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char result = as<char>(value);

◆ as< char >() [24/36]

template<>
char xtd::as< char > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char result = as<char>(value);

◆ as< char >() [25/36]

template<>
char xtd::as< char > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
char result = as<char>(value);

◆ as< char >() [26/36]

template<>
char xtd::as< char > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
char result = as<char>(value);

◆ as< char >() [27/36]

template<>
char xtd::as< char > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
char result = as<char>(value);

◆ as< char >() [28/36]

template<>
char xtd::as< char > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
char result = as<char>(value);

◆ as< char >() [29/36]

template<>
char xtd::as< char > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
char result = as<char>(value);

◆ as< char >() [30/36]

template<>
char xtd::as< char > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char result = as<char>(value);

◆ as< char >() [31/36]

template<>
char xtd::as< char > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
char result = as<char>(value);

◆ as< char >() [32/36]

template<>
char xtd::as< char > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
char result = as<char>(value);

◆ as< char >() [33/36]

template<>
char xtd::as< char > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
char result = as<char>(value);

◆ as< char >() [34/36]

template<>
char xtd::as< char > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
char result = as<char>(value);

◆ as< char >() [35/36]

template<>
char xtd::as< char > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
char result = as<char>(value);

◆ as< char >() [36/36]

template<>
char xtd::as< char > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
char result = as<char>(value);

◆ as< char16_t >() [1/36]

template<>
char16_t xtd::as< char16_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char16_t result = as<char16_t>(value);
char16_t as< char16_t >(std::any value)
Casts a type into another type.
Definition: as.h:3565

◆ as< char16_t >() [2/36]

template<>
char16_t xtd::as< char16_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [3/36]

template<>
char16_t xtd::as< char16_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [4/36]

template<>
char16_t xtd::as< char16_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [5/36]

template<>
char16_t xtd::as< char16_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [6/36]

template<>
char16_t xtd::as< char16_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [7/36]

template<>
char16_t xtd::as< char16_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [8/36]

template<>
char16_t xtd::as< char16_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [9/36]

template<>
char16_t xtd::as< char16_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [10/36]

template<>
char16_t xtd::as< char16_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [11/36]

template<>
char16_t xtd::as< char16_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [12/36]

template<>
char16_t xtd::as< char16_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [13/36]

template<>
char16_t xtd::as< char16_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [14/36]

template<>
char16_t xtd::as< char16_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [15/36]

template<>
char16_t xtd::as< char16_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [16/36]

template<>
char16_t xtd::as< char16_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [17/36]

template<>
char16_t xtd::as< char16_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [18/36]

template<>
char16_t xtd::as< char16_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [19/36]

template<>
char16_t xtd::as< char16_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [20/36]

template<>
char16_t xtd::as< char16_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [21/36]

template<>
char16_t xtd::as< char16_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [22/36]

template<>
char16_t xtd::as< char16_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [23/36]

template<>
char16_t xtd::as< char16_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [24/36]

template<>
char16_t xtd::as< char16_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [25/36]

template<>
char16_t xtd::as< char16_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [26/36]

template<>
char16_t xtd::as< char16_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [27/36]

template<>
char16_t xtd::as< char16_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [28/36]

template<>
char16_t xtd::as< char16_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [29/36]

template<>
char16_t xtd::as< char16_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [30/36]

template<>
char16_t xtd::as< char16_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [31/36]

template<>
char16_t xtd::as< char16_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [32/36]

template<>
char16_t xtd::as< char16_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [33/36]

template<>
char16_t xtd::as< char16_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [34/36]

template<>
char16_t xtd::as< char16_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [35/36]

template<>
char16_t xtd::as< char16_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
char16_t result = as<char16_t>(value);

◆ as< char16_t >() [36/36]

template<>
char16_t xtd::as< char16_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
char16_t result = as<char16_t>(value);

◆ as< char32_t >() [1/36]

template<>
char32_t xtd::as< char32_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char32_t result = as<char32_t>(value);
char32_t as< char32_t >(std::any value)
Casts a type into another type.
Definition: as.h:4235

◆ as< char32_t >() [2/36]

template<>
char32_t xtd::as< char32_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [3/36]

template<>
char32_t xtd::as< char32_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [4/36]

template<>
char32_t xtd::as< char32_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [5/36]

template<>
char32_t xtd::as< char32_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [6/36]

template<>
char32_t xtd::as< char32_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [7/36]

template<>
char32_t xtd::as< char32_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [8/36]

template<>
char32_t xtd::as< char32_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [9/36]

template<>
char32_t xtd::as< char32_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [10/36]

template<>
char32_t xtd::as< char32_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [11/36]

template<>
char32_t xtd::as< char32_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [12/36]

template<>
char32_t xtd::as< char32_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [13/36]

template<>
char32_t xtd::as< char32_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [14/36]

template<>
char32_t xtd::as< char32_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [15/36]

template<>
char32_t xtd::as< char32_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [16/36]

template<>
char32_t xtd::as< char32_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [17/36]

template<>
char32_t xtd::as< char32_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [18/36]

template<>
char32_t xtd::as< char32_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [19/36]

template<>
char32_t xtd::as< char32_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [20/36]

template<>
char32_t xtd::as< char32_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [21/36]

template<>
char32_t xtd::as< char32_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [22/36]

template<>
char32_t xtd::as< char32_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [23/36]

template<>
char32_t xtd::as< char32_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [24/36]

template<>
char32_t xtd::as< char32_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [25/36]

template<>
char32_t xtd::as< char32_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [26/36]

template<>
char32_t xtd::as< char32_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [27/36]

template<>
char32_t xtd::as< char32_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [28/36]

template<>
char32_t xtd::as< char32_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [29/36]

template<>
char32_t xtd::as< char32_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [30/36]

template<>
char32_t xtd::as< char32_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [31/36]

template<>
char32_t xtd::as< char32_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [32/36]

template<>
char32_t xtd::as< char32_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [33/36]

template<>
char32_t xtd::as< char32_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [34/36]

template<>
char32_t xtd::as< char32_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [35/36]

template<>
char32_t xtd::as< char32_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
char32_t result = as<char32_t>(value);

◆ as< char32_t >() [36/36]

template<>
char32_t xtd::as< char32_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
char32_t result = as<char32_t>(value);

◆ as< char8_t >() [1/36]

template<>
char8_t xtd::as< char8_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char8_t result = as<char8_t>(value);
char8_t as< char8_t >(std::any value)
Casts a type into another type.
Definition: as.h:2895

◆ as< char8_t >() [2/36]

template<>
char8_t xtd::as< char8_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [3/36]

template<>
char8_t xtd::as< char8_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [4/36]

template<>
char8_t xtd::as< char8_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [5/36]

template<>
char8_t xtd::as< char8_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [6/36]

template<>
char8_t xtd::as< char8_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [7/36]

template<>
char8_t xtd::as< char8_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [8/36]

template<>
char8_t xtd::as< char8_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [9/36]

template<>
char8_t xtd::as< char8_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [10/36]

template<>
char8_t xtd::as< char8_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [11/36]

template<>
char8_t xtd::as< char8_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [12/36]

template<>
char8_t xtd::as< char8_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [13/36]

template<>
char8_t xtd::as< char8_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [14/36]

template<>
char8_t xtd::as< char8_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [15/36]

template<>
char8_t xtd::as< char8_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [16/36]

template<>
char8_t xtd::as< char8_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [17/36]

template<>
char8_t xtd::as< char8_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [18/36]

template<>
char8_t xtd::as< char8_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [19/36]

template<>
char8_t xtd::as< char8_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [20/36]

template<>
char8_t xtd::as< char8_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [21/36]

template<>
char8_t xtd::as< char8_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [22/36]

template<>
char8_t xtd::as< char8_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [23/36]

template<>
char8_t xtd::as< char8_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [24/36]

template<>
char8_t xtd::as< char8_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [25/36]

template<>
char8_t xtd::as< char8_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [26/36]

template<>
char8_t xtd::as< char8_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [27/36]

template<>
char8_t xtd::as< char8_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [28/36]

template<>
char8_t xtd::as< char8_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [29/36]

template<>
char8_t xtd::as< char8_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [30/36]

template<>
char8_t xtd::as< char8_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [31/36]

template<>
char8_t xtd::as< char8_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [32/36]

template<>
char8_t xtd::as< char8_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [33/36]

template<>
char8_t xtd::as< char8_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [34/36]

template<>
char8_t xtd::as< char8_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [35/36]

template<>
char8_t xtd::as< char8_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
char8_t result = as<char8_t>(value);

◆ as< char8_t >() [36/36]

template<>
char8_t xtd::as< char8_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
char8_t result = as<char8_t>(value);

◆ as< decimal_t >() [1/36]

template<>
decimal_t xtd::as< decimal_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
decimal_t result = as<decimal_t>(value);
decimal_t as< decimal_t >(std::any value)
Casts a type into another type.
Definition: as.h:5575

◆ as< decimal_t >() [2/36]

template<>
decimal_t xtd::as< decimal_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [3/36]

template<>
decimal_t xtd::as< decimal_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [4/36]

template<>
decimal_t xtd::as< decimal_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [5/36]

template<>
decimal_t xtd::as< decimal_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [6/36]

template<>
decimal_t xtd::as< decimal_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [7/36]

template<>
decimal_t xtd::as< decimal_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [8/36]

template<>
decimal_t xtd::as< decimal_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [9/36]

template<>
decimal_t xtd::as< decimal_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [10/36]

template<>
decimal_t xtd::as< decimal_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [11/36]

template<>
decimal_t xtd::as< decimal_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [12/36]

template<>
decimal_t xtd::as< decimal_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [13/36]

template<>
decimal_t xtd::as< decimal_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [14/36]

template<>
decimal_t xtd::as< decimal_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [15/36]

template<>
decimal_t xtd::as< decimal_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [16/36]

template<>
decimal_t xtd::as< decimal_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [17/36]

template<>
decimal_t xtd::as< decimal_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [18/36]

template<>
decimal_t xtd::as< decimal_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [19/36]

template<>
decimal_t xtd::as< decimal_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [20/36]

template<>
decimal_t xtd::as< decimal_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [21/36]

template<>
decimal_t xtd::as< decimal_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [22/36]

template<>
decimal_t xtd::as< decimal_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [23/36]

template<>
decimal_t xtd::as< decimal_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [24/36]

template<>
decimal_t xtd::as< decimal_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [25/36]

template<>
decimal_t xtd::as< decimal_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [26/36]

template<>
decimal_t xtd::as< decimal_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [27/36]

template<>
decimal_t xtd::as< decimal_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [28/36]

template<>
decimal_t xtd::as< decimal_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [29/36]

template<>
decimal_t xtd::as< decimal_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [30/36]

template<>
decimal_t xtd::as< decimal_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [31/36]

template<>
decimal_t xtd::as< decimal_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [32/36]

template<>
decimal_t xtd::as< decimal_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [33/36]

template<>
decimal_t xtd::as< decimal_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [34/36]

template<>
decimal_t xtd::as< decimal_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [35/36]

template<>
decimal_t xtd::as< decimal_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
decimal_t result = as<decimal_t>(value);

◆ as< decimal_t >() [36/36]

template<>
decimal_t xtd::as< decimal_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
decimal_t result = as<decimal_t>(value);

◆ as< double >() [1/36]

template<>
double xtd::as< double > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
double result = as<double>(value);
double as< double >(std::any value)
Casts a type into another type.
Definition: as.h:6245

◆ as< double >() [2/36]

template<>
double xtd::as< double > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
double result = as<double>(value);

◆ as< double >() [3/36]

template<>
double xtd::as< double > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
double result = as<double>(value);

◆ as< double >() [4/36]

template<>
double xtd::as< double > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
double result = as<double>(value);

◆ as< double >() [5/36]

template<>
double xtd::as< double > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
double result = as<double>(value);

◆ as< double >() [6/36]

template<>
double xtd::as< double > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
double result = as<double>(value);

◆ as< double >() [7/36]

template<>
double xtd::as< double > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
double result = as<double>(value);

◆ as< double >() [8/36]

template<>
double xtd::as< double > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
double result = as<double>(value);

◆ as< double >() [9/36]

template<>
double xtd::as< double > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
double result = as<double>(value);

◆ as< double >() [10/36]

template<>
double xtd::as< double > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
double result = as<double>(value);

◆ as< double >() [11/36]

template<>
double xtd::as< double > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
double result = as<double>(value);

◆ as< double >() [12/36]

template<>
double xtd::as< double > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
double result = as<double>(value);

◆ as< double >() [13/36]

template<>
double xtd::as< double > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
double result = as<double>(value);

◆ as< double >() [14/36]

template<>
double xtd::as< double > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
double result = as<double>(value);

◆ as< double >() [15/36]

template<>
double xtd::as< double > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
double result = as<double>(value);

◆ as< double >() [16/36]

template<>
double xtd::as< double > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
double result = as<double>(value);

◆ as< double >() [17/36]

template<>
double xtd::as< double > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
double result = as<double>(value);

◆ as< double >() [18/36]

template<>
double xtd::as< double > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
double result = as<double>(value);

◆ as< double >() [19/36]

template<>
double xtd::as< double > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
double result = as<double>(value);

◆ as< double >() [20/36]

template<>
double xtd::as< double > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
double result = as<double>(value);

◆ as< double >() [21/36]

template<>
double xtd::as< double > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
double result = as<double>(value);

◆ as< double >() [22/36]

template<>
double xtd::as< double > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
double result = as<double>(value);

◆ as< double >() [23/36]

template<>
double xtd::as< double > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
double result = as<double>(value);

◆ as< double >() [24/36]

template<>
double xtd::as< double > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
double result = as<double>(value);

◆ as< double >() [25/36]

template<>
double xtd::as< double > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
double result = as<double>(value);

◆ as< double >() [26/36]

template<>
double xtd::as< double > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
double result = as<double>(value);

◆ as< double >() [27/36]

template<>
double xtd::as< double > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
double result = as<double>(value);

◆ as< double >() [28/36]

template<>
double xtd::as< double > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
double result = as<double>(value);

◆ as< double >() [29/36]

template<>
double xtd::as< double > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
double result = as<double>(value);

◆ as< double >() [30/36]

template<>
double xtd::as< double > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
double result = as<double>(value);

◆ as< double >() [31/36]

template<>
double xtd::as< double > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
double result = as<double>(value);

◆ as< double >() [32/36]

template<>
double xtd::as< double > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
double result = as<double>(value);

◆ as< double >() [33/36]

template<>
double xtd::as< double > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
double result = as<double>(value);

◆ as< double >() [34/36]

template<>
double xtd::as< double > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
double result = as<double>(value);

◆ as< double >() [35/36]

template<>
double xtd::as< double > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
double result = as<double>(value);

◆ as< double >() [36/36]

template<>
double xtd::as< double > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
double result = as<double>(value);

◆ as< float >() [1/36]

template<>
float xtd::as< float > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
float result = as<float>(value);

◆ as< float >() [2/36]

template<>
float xtd::as< float > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
float result = as<float>(value);

◆ as< float >() [3/36]

template<>
float xtd::as< float > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
float result = as<float>(value);

◆ as< float >() [4/36]

template<>
float xtd::as< float > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
float result = as<float>(value);

◆ as< float >() [5/36]

template<>
float xtd::as< float > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
float result = as<float>(value);

◆ as< float >() [6/36]

template<>
float xtd::as< float > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
float result = as<float>(value);

◆ as< float >() [7/36]

template<>
float xtd::as< float > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
float result = as<float>(value);

◆ as< float >() [8/36]

template<>
float xtd::as< float > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
float result = as<float>(value);

◆ as< float >() [9/36]

template<>
float xtd::as< float > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
float result = as<float>(value);

◆ as< float >() [10/36]

template<>
float xtd::as< float > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
float result = as<float>(value);

◆ as< float >() [11/36]

template<>
float xtd::as< float > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
float result = as<float>(value);

◆ as< float >() [12/36]

template<>
float xtd::as< float > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
float result = as<float>(value);

◆ as< float >() [13/36]

template<>
float xtd::as< float > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
float result = as<float>(value);

◆ as< float >() [14/36]

template<>
float xtd::as< float > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
float result = as<float>(value);

◆ as< float >() [15/36]

template<>
float xtd::as< float > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
float result = as<float>(value);

◆ as< float >() [16/36]

template<>
float xtd::as< float > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
float result = as<float>(value);

◆ as< float >() [17/36]

template<>
float xtd::as< float > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
float result = as<float>(value);

◆ as< float >() [18/36]

template<>
float xtd::as< float > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
float result = as<float>(value);

◆ as< float >() [19/36]

template<>
float xtd::as< float > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
float result = as<float>(value);

◆ as< float >() [20/36]

template<>
float xtd::as< float > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
float result = as<float>(value);

◆ as< float >() [21/36]

template<>
float xtd::as< float > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
float result = as<float>(value);

◆ as< float >() [22/36]

template<>
float xtd::as< float > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
float result = as<float>(value);

◆ as< float >() [23/36]

template<>
float xtd::as< float > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
float result = as<float>(value);

◆ as< float >() [24/36]

template<>
float xtd::as< float > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
float result = as<float>(value);

◆ as< float >() [25/36]

template<>
float xtd::as< float > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
float result = as<float>(value);

◆ as< float >() [26/36]

template<>
float xtd::as< float > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
float result = as<float>(value);

◆ as< float >() [27/36]

template<>
float xtd::as< float > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
float result = as<float>(value);

◆ as< float >() [28/36]

template<>
float xtd::as< float > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
float result = as<float>(value);

◆ as< float >() [29/36]

template<>
float xtd::as< float > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
float result = as<float>(value);

◆ as< float >() [30/36]

template<>
float xtd::as< float > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
float result = as<float>(value);

◆ as< float >() [31/36]

template<>
float xtd::as< float > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
float result = as<float>(value);

◆ as< float >() [32/36]

template<>
float xtd::as< float > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
float result = as<float>(value);

◆ as< float >() [33/36]

template<>
float xtd::as< float > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
float result = as<float>(value);

◆ as< float >() [34/36]

template<>
float xtd::as< float > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
float result = as<float>(value);

◆ as< float >() [35/36]

template<>
float xtd::as< float > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
float result = as<float>(value);

◆ as< float >() [36/36]

template<>
float xtd::as< float > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
float result = as<float>(value);

◆ as< int16_t >() [1/37]

template<>
int16_t xtd::as< int16_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int16_t result = as<int16_t>(value);
int16_t as< int16_t >(std::any value)
Casts a type into another type.
Definition: as.h:7585

◆ as< int16_t >() [2/37]

template<>
int16_t xtd::as< int16_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [3/37]

template<>
int16_t xtd::as< int16_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [4/37]

template<>
int16_t xtd::as< int16_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [5/37]

template<>
int16_t xtd::as< int16_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [6/37]

template<>
int16_t xtd::as< int16_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [7/37]

template<>
int16_t xtd::as< int16_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [8/37]

template<>
int16_t xtd::as< int16_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [9/37]

template<>
int16_t xtd::as< int16_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [10/37]

template<>
int16_t xtd::as< int16_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [11/37]

template<>
int16_t xtd::as< int16_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [12/37]

template<>
int16_t xtd::as< int16_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [13/37]

template<>
int16_t xtd::as< int16_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [14/37]

template<>
int16_t xtd::as< int16_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [15/37]

template<>
int16_t xtd::as< int16_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [16/37]

template<>
int16_t xtd::as< int16_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [17/37]

template<>
int16_t xtd::as< int16_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [18/37]

template<>
int16_t xtd::as< int16_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [19/37]

template<>
int16_t xtd::as< int16_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [20/37]

template<>
int16_t xtd::as< int16_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [21/37]

template<>
int16_t xtd::as< int16_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [22/37]

template<>
int16_t xtd::as< int16_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int16.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
int16_t result = as<int16_t>(value, 16);

◆ as< int16_t >() [23/37]

template<>
int16_t xtd::as< int16_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [24/37]

template<>
int16_t xtd::as< int16_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [25/37]

template<>
int16_t xtd::as< int16_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [26/37]

template<>
int16_t xtd::as< int16_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [27/37]

template<>
int16_t xtd::as< int16_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [28/37]

template<>
int16_t xtd::as< int16_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [29/37]

template<>
int16_t xtd::as< int16_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [30/37]

template<>
int16_t xtd::as< int16_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [31/37]

template<>
int16_t xtd::as< int16_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [32/37]

template<>
int16_t xtd::as< int16_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [33/37]

template<>
int16_t xtd::as< int16_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [34/37]

template<>
int16_t xtd::as< int16_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [35/37]

template<>
int16_t xtd::as< int16_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [36/37]

template<>
int16_t xtd::as< int16_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
int16_t result = as<int16_t>(value);

◆ as< int16_t >() [37/37]

template<>
int16_t xtd::as< int16_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
int16_t result = as<int16_t>(value);

◆ as< int32_t >() [1/37]

template<>
int32_t xtd::as< int32_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int32_t result = as<int32_t>(value);
int32_t as< int32_t >(std::any value)
Casts a type into another type.
Definition: as.h:8275

◆ as< int32_t >() [2/37]

template<>
int32_t xtd::as< int32_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [3/37]

template<>
int32_t xtd::as< int32_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [4/37]

template<>
int32_t xtd::as< int32_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [5/37]

template<>
int32_t xtd::as< int32_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [6/37]

template<>
int32_t xtd::as< int32_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [7/37]

template<>
int32_t xtd::as< int32_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [8/37]

template<>
int32_t xtd::as< int32_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [9/37]

template<>
int32_t xtd::as< int32_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [10/37]

template<>
int32_t xtd::as< int32_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [11/37]

template<>
int32_t xtd::as< int32_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [12/37]

template<>
int32_t xtd::as< int32_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [13/37]

template<>
int32_t xtd::as< int32_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [14/37]

template<>
int32_t xtd::as< int32_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [15/37]

template<>
int32_t xtd::as< int32_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [16/37]

template<>
int32_t xtd::as< int32_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [17/37]

template<>
int32_t xtd::as< int32_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [18/37]

template<>
int32_t xtd::as< int32_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [19/37]

template<>
int32_t xtd::as< int32_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [20/37]

template<>
int32_t xtd::as< int32_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [21/37]

template<>
int32_t xtd::as< int32_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [22/37]

template<>
int32_t xtd::as< int32_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int32.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
int32_t result = as<int32_t>(value, 16);

◆ as< int32_t >() [23/37]

template<>
int32_t xtd::as< int32_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [24/37]

template<>
int32_t xtd::as< int32_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [25/37]

template<>
int32_t xtd::as< int32_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [26/37]

template<>
int32_t xtd::as< int32_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [27/37]

template<>
int32_t xtd::as< int32_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [28/37]

template<>
int32_t xtd::as< int32_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [29/37]

template<>
int32_t xtd::as< int32_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [30/37]

template<>
int32_t xtd::as< int32_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [31/37]

template<>
int32_t xtd::as< int32_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [32/37]

template<>
int32_t xtd::as< int32_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [33/37]

template<>
int32_t xtd::as< int32_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [34/37]

template<>
int32_t xtd::as< int32_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [35/37]

template<>
int32_t xtd::as< int32_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [36/37]

template<>
int32_t xtd::as< int32_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
int32_t result = as<int32_t>(value);

◆ as< int32_t >() [37/37]

template<>
int32_t xtd::as< int32_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
int32_t result = as<int32_t>(value);

◆ as< int64_t >() [1/37]

template<>
int64_t xtd::as< int64_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int64_t result = as<int64_t>(value);
int64_t as< int64_t >(std::any value)
Casts a type into another type.
Definition: as.h:8965

◆ as< int64_t >() [2/37]

template<>
int64_t xtd::as< int64_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [3/37]

template<>
int64_t xtd::as< int64_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [4/37]

template<>
int64_t xtd::as< int64_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [5/37]

template<>
int64_t xtd::as< int64_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [6/37]

template<>
int64_t xtd::as< int64_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [7/37]

template<>
int64_t xtd::as< int64_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [8/37]

template<>
int64_t xtd::as< int64_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [9/37]

template<>
int64_t xtd::as< int64_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [10/37]

template<>
int64_t xtd::as< int64_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [11/37]

template<>
int64_t xtd::as< int64_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [12/37]

template<>
int64_t xtd::as< int64_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [13/37]

template<>
int64_t xtd::as< int64_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [14/37]

template<>
int64_t xtd::as< int64_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [15/37]

template<>
int64_t xtd::as< int64_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [16/37]

template<>
int64_t xtd::as< int64_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [17/37]

template<>
int64_t xtd::as< int64_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [18/37]

template<>
int64_t xtd::as< int64_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [19/37]

template<>
int64_t xtd::as< int64_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [20/37]

template<>
int64_t xtd::as< int64_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [21/37]

template<>
int64_t xtd::as< int64_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [22/37]

template<>
int64_t xtd::as< int64_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int64.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
int64_t result = as<int64_t>(value, 16);

◆ as< int64_t >() [23/37]

template<>
int64_t xtd::as< int64_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [24/37]

template<>
int64_t xtd::as< int64_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [25/37]

template<>
int64_t xtd::as< int64_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [26/37]

template<>
int64_t xtd::as< int64_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [27/37]

template<>
int64_t xtd::as< int64_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [28/37]

template<>
int64_t xtd::as< int64_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [29/37]

template<>
int64_t xtd::as< int64_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [30/37]

template<>
int64_t xtd::as< int64_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [31/37]

template<>
int64_t xtd::as< int64_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [32/37]

template<>
int64_t xtd::as< int64_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [33/37]

template<>
int64_t xtd::as< int64_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [34/37]

template<>
int64_t xtd::as< int64_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [35/37]

template<>
int64_t xtd::as< int64_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [36/37]

template<>
int64_t xtd::as< int64_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
int64_t result = as<int64_t>(value);

◆ as< int64_t >() [37/37]

template<>
int64_t xtd::as< int64_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
int64_t result = as<int64_t>(value);

◆ as< llong_t >() [1/37]

template<>
llong_t xtd::as< llong_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
llong_t result = as<llong_t>(value);
llong_t as< llong_t >(std::any value)
Casts a type into another type.
Definition: as.h:9655

◆ as< llong_t >() [2/37]

template<>
llong_t xtd::as< llong_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [3/37]

template<>
llong_t xtd::as< llong_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [4/37]

template<>
llong_t xtd::as< llong_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [5/37]

template<>
llong_t xtd::as< llong_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [6/37]

template<>
llong_t xtd::as< llong_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [7/37]

template<>
llong_t xtd::as< llong_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [8/37]

template<>
llong_t xtd::as< llong_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [9/37]

template<>
llong_t xtd::as< llong_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [10/37]

template<>
llong_t xtd::as< llong_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [11/37]

template<>
llong_t xtd::as< llong_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [12/37]

template<>
llong_t xtd::as< llong_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [13/37]

template<>
llong_t xtd::as< llong_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [14/37]

template<>
llong_t xtd::as< llong_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [15/37]

template<>
llong_t xtd::as< llong_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [16/37]

template<>
llong_t xtd::as< llong_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [17/37]

template<>
llong_t xtd::as< llong_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [18/37]

template<>
llong_t xtd::as< llong_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [19/37]

template<>
llong_t xtd::as< llong_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [20/37]

template<>
llong_t xtd::as< llong_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [21/37]

template<>
llong_t xtd::as< llong_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [22/37]

template<>
llong_t xtd::as< llong_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a llong.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
llong_t result = as<llong_t>(value, 16);

◆ as< llong_t >() [23/37]

template<>
llong_t xtd::as< llong_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [24/37]

template<>
llong_t xtd::as< llong_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [25/37]

template<>
llong_t xtd::as< llong_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [26/37]

template<>
llong_t xtd::as< llong_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [27/37]

template<>
llong_t xtd::as< llong_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [28/37]

template<>
llong_t xtd::as< llong_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [29/37]

template<>
llong_t xtd::as< llong_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [30/37]

template<>
llong_t xtd::as< llong_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [31/37]

template<>
llong_t xtd::as< llong_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [32/37]

template<>
llong_t xtd::as< llong_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [33/37]

template<>
llong_t xtd::as< llong_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [34/37]

template<>
llong_t xtd::as< llong_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [35/37]

template<>
llong_t xtd::as< llong_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [36/37]

template<>
llong_t xtd::as< llong_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
llong_t result = as<llong_t>(value);

◆ as< llong_t >() [37/37]

template<>
llong_t xtd::as< llong_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
llong_t result = as<llong_t>(value);

◆ as< sbyte_t >() [1/37]

template<>
sbyte_t xtd::as< sbyte_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
sbyte_t result = as<sbyte_t>(value);
sbyte_t as< sbyte_t >(std::any value)
Casts a type into another type.
Definition: as.h:10345

◆ as< sbyte_t >() [2/37]

template<>
sbyte_t xtd::as< sbyte_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [3/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [4/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [5/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [6/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [7/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [8/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [9/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [10/37]

template<>
sbyte_t xtd::as< sbyte_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [11/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [12/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [13/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [14/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [15/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [16/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [17/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [18/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [19/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [20/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [21/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [22/37]

template<>
sbyte_t xtd::as< sbyte_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a sbyte.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
sbyte_t result = as<sbyte_t>(value, 16);

◆ as< sbyte_t >() [23/37]

template<>
sbyte_t xtd::as< sbyte_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [24/37]

template<>
sbyte_t xtd::as< sbyte_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [25/37]

template<>
sbyte_t xtd::as< sbyte_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [26/37]

template<>
sbyte_t xtd::as< sbyte_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [27/37]

template<>
sbyte_t xtd::as< sbyte_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [28/37]

template<>
sbyte_t xtd::as< sbyte_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [29/37]

template<>
sbyte_t xtd::as< sbyte_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [30/37]

template<>
sbyte_t xtd::as< sbyte_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [31/37]

template<>
sbyte_t xtd::as< sbyte_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [32/37]

template<>
sbyte_t xtd::as< sbyte_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [33/37]

template<>
sbyte_t xtd::as< sbyte_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [34/37]

template<>
sbyte_t xtd::as< sbyte_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [35/37]

template<>
sbyte_t xtd::as< sbyte_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [36/37]

template<>
sbyte_t xtd::as< sbyte_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
sbyte_t result = as<sbyte_t>(value);

◆ as< sbyte_t >() [37/37]

template<>
sbyte_t xtd::as< sbyte_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
sbyte_t result = as<sbyte_t>(value);

◆ as< std::string >() [1/21]

template<>
std::string xtd::as< std::string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [2/21]

template<>
std::string xtd::as< std::string > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [3/21]

template<>
std::string xtd::as< std::string > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [4/21]

template<>
std::string xtd::as< std::string > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [5/21]

template<>
std::string xtd::as< std::string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [6/21]

template<>
std::string xtd::as< std::string > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [7/21]

template<>
std::string xtd::as< std::string > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [8/21]

template<>
std::string xtd::as< std::string > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [9/21]

template<>
std::string xtd::as< std::string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [10/21]

template<>
std::string xtd::as< std::string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [11/21]

template<>
std::string xtd::as< std::string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [12/21]

template<>
std::string xtd::as< std::string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [13/21]

template<>
std::string xtd::as< std::string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [14/21]

template<>
std::string xtd::as< std::string > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [15/21]

template<>
std::string xtd::as< std::string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [16/21]

template<>
std::string xtd::as< std::string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [17/21]

template<>
std::string xtd::as< std::string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [18/21]

template<>
std::string xtd::as< std::string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [19/21]

template<>
std::string xtd::as< std::string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [20/21]

template<>
std::string xtd::as< std::string > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [21/21]

template<>
std::string xtd::as< std::string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
string result = as<string>(value);

◆ as< std::u16string >() [1/22]

template<>
std::u16string xtd::as< std::u16string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [2/22]

template<>
std::u16string xtd::as< std::u16string > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [3/22]

template<>
std::u16string xtd::as< std::u16string > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [4/22]

template<>
std::u16string xtd::as< std::u16string > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [5/22]

template<>
std::u16string xtd::as< std::u16string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [6/22]

template<>
std::u16string xtd::as< std::u16string > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [7/22]

template<>
std::u16string xtd::as< std::u16string > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [8/22]

template<>
std::u16string xtd::as< std::u16string > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [9/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [10/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [11/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [12/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [13/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [14/22]

template<>
std::u16string xtd::as< std::u16string > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [15/22]

template<>
std::u16string xtd::as< std::u16string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [16/22]

template<>
std::u16string xtd::as< std::u16string > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [17/22]

template<>
std::u16string xtd::as< std::u16string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [18/22]

template<>
std::u16string xtd::as< std::u16string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [19/22]

template<>
std::u16string xtd::as< std::u16string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [20/22]

template<>
std::u16string xtd::as< std::u16string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [21/22]

template<>
std::u16string xtd::as< std::u16string > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [22/22]

template<>
std::u16string xtd::as< std::u16string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u32string >() [1/22]

template<>
std::u32string xtd::as< std::u32string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [2/22]

template<>
std::u32string xtd::as< std::u32string > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [3/22]

template<>
std::u32string xtd::as< std::u32string > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [4/22]

template<>
std::u32string xtd::as< std::u32string > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [5/22]

template<>
std::u32string xtd::as< std::u32string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [6/22]

template<>
std::u32string xtd::as< std::u32string > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [7/22]

template<>
std::u32string xtd::as< std::u32string > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [8/22]

template<>
std::u32string xtd::as< std::u32string > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [9/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [10/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [11/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [12/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [13/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [14/22]

template<>
std::u32string xtd::as< std::u32string > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [15/22]

template<>
std::u32string xtd::as< std::u32string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [16/22]

template<>
std::u32string xtd::as< std::u32string > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [17/22]

template<>
std::u32string xtd::as< std::u32string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [18/22]

template<>
std::u32string xtd::as< std::u32string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [19/22]

template<>
std::u32string xtd::as< std::u32string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [20/22]

template<>
std::u32string xtd::as< std::u32string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [21/22]

template<>
std::u32string xtd::as< std::u32string > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [22/22]

template<>
std::u32string xtd::as< std::u32string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u8string >() [1/22]

template<>
std::u8string xtd::as< std::u8string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [2/22]

template<>
std::u8string xtd::as< std::u8string > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [3/22]

template<>
std::u8string xtd::as< std::u8string > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [4/22]

template<>
std::u8string xtd::as< std::u8string > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [5/22]

template<>
std::u8string xtd::as< std::u8string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char* cvalue1 = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [6/22]

template<>
std::u8string xtd::as< std::u8string > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [7/22]

template<>
std::u8string xtd::as< std::u8string > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [8/22]

template<>
std::u8string xtd::as< std::u8string > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [9/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [10/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [11/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [12/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [13/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [14/22]

template<>
std::u8string xtd::as< std::u8string > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [15/22]

template<>
std::u8string xtd::as< std::u8string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [16/22]

template<>
std::u8string xtd::as< std::u8string > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [17/22]

template<>
std::u8string xtd::as< std::u8string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [18/22]

template<>
std::u8string xtd::as< std::u8string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [19/22]

template<>
std::u8string xtd::as< std::u8string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [20/22]

template<>
std::u8string xtd::as< std::u8string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [21/22]

template<>
std::u8string xtd::as< std::u8string > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [22/22]

template<>
std::u8string xtd::as< std::u8string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::wstring >() [1/22]

template<>
std::wstring xtd::as< std::wstring > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [2/22]

template<>
std::wstring xtd::as< std::wstring > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [3/22]

template<>
std::wstring xtd::as< std::wstring > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [4/22]

template<>
std::wstring xtd::as< std::wstring > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [5/22]

template<>
std::wstring xtd::as< std::wstring > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [6/22]

template<>
std::wstring xtd::as< std::wstring > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [7/22]

template<>
std::wstring xtd::as< std::wstring > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [8/22]

template<>
std::wstring xtd::as< std::wstring > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [9/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [10/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [11/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [12/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [13/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [14/22]

template<>
std::wstring xtd::as< std::wstring > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [15/22]

template<>
std::wstring xtd::as< std::wstring > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [16/22]

template<>
std::wstring xtd::as< std::wstring > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [17/22]

template<>
std::wstring xtd::as< std::wstring > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [18/22]

template<>
std::wstring xtd::as< std::wstring > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [19/22]

template<>
std::wstring xtd::as< std::wstring > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [20/22]

template<>
std::wstring xtd::as< std::wstring > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [21/22]

template<>
std::wstring xtd::as< std::wstring > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [22/22]

template<>
std::wstring xtd::as< std::wstring > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< uint16_t >() [1/37]

template<>
uint16_t xtd::as< uint16_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint16_t result = as<uint16_t>(value);
uint16_t as< uint16_t >(std::any value)
Casts a type into another type.
Definition: as.h:11035

◆ as< uint16_t >() [2/37]

template<>
uint16_t xtd::as< uint16_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [3/37]

template<>
uint16_t xtd::as< uint16_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [4/37]

template<>
uint16_t xtd::as< uint16_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [5/37]

template<>
uint16_t xtd::as< uint16_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [6/37]

template<>
uint16_t xtd::as< uint16_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [7/37]

template<>
uint16_t xtd::as< uint16_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [8/37]

template<>
uint16_t xtd::as< uint16_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [9/37]

template<>
uint16_t xtd::as< uint16_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [10/37]

template<>
uint16_t xtd::as< uint16_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [11/37]

template<>
uint16_t xtd::as< uint16_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [12/37]

template<>
uint16_t xtd::as< uint16_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [13/37]

template<>
uint16_t xtd::as< uint16_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [14/37]

template<>
uint16_t xtd::as< uint16_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [15/37]

template<>
uint16_t xtd::as< uint16_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [16/37]

template<>
uint16_t xtd::as< uint16_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [17/37]

template<>
uint16_t xtd::as< uint16_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [18/37]

template<>
uint16_t xtd::as< uint16_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [19/37]

template<>
uint16_t xtd::as< uint16_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [20/37]

template<>
uint16_t xtd::as< uint16_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [21/37]

template<>
uint16_t xtd::as< uint16_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [22/37]

template<>
uint16_t xtd::as< uint16_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint16.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
uint16_t result = as<uint16_t>(value, 16);

◆ as< uint16_t >() [23/37]

template<>
uint16_t xtd::as< uint16_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [24/37]

template<>
uint16_t xtd::as< uint16_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [25/37]

template<>
uint16_t xtd::as< uint16_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [26/37]

template<>
uint16_t xtd::as< uint16_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [27/37]

template<>
uint16_t xtd::as< uint16_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [28/37]

template<>
uint16_t xtd::as< uint16_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [29/37]

template<>
uint16_t xtd::as< uint16_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [30/37]

template<>
uint16_t xtd::as< uint16_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [31/37]

template<>
uint16_t xtd::as< uint16_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [32/37]

template<>
uint16_t xtd::as< uint16_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [33/37]

template<>
uint16_t xtd::as< uint16_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [34/37]

template<>
uint16_t xtd::as< uint16_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [35/37]

template<>
uint16_t xtd::as< uint16_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [36/37]

template<>
uint16_t xtd::as< uint16_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
uint16_t result = as<uint16_t>(value);

◆ as< uint16_t >() [37/37]

template<>
uint16_t xtd::as< uint16_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
uint16_t result = as<uint16_t>(value);

◆ as< uint32_t >() [1/37]

template<>
uint32_t xtd::as< uint32_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint32_t result = as<uint32_t>(value);
uint32_t as< uint32_t >(std::any value)
Casts a type into another type.
Definition: as.h:11725

◆ as< uint32_t >() [2/37]

template<>
uint32_t xtd::as< uint32_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [3/37]

template<>
uint32_t xtd::as< uint32_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [4/37]

template<>
uint32_t xtd::as< uint32_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [5/37]

template<>
uint32_t xtd::as< uint32_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [6/37]

template<>
uint32_t xtd::as< uint32_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [7/37]

template<>
uint32_t xtd::as< uint32_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [8/37]

template<>
uint32_t xtd::as< uint32_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [9/37]

template<>
uint32_t xtd::as< uint32_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [10/37]

template<>
uint32_t xtd::as< uint32_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [11/37]

template<>
uint32_t xtd::as< uint32_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [12/37]

template<>
uint32_t xtd::as< uint32_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [13/37]

template<>
uint32_t xtd::as< uint32_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [14/37]

template<>
uint32_t xtd::as< uint32_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [15/37]

template<>
uint32_t xtd::as< uint32_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [16/37]

template<>
uint32_t xtd::as< uint32_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [17/37]

template<>
uint32_t xtd::as< uint32_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [18/37]

template<>
uint32_t xtd::as< uint32_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [19/37]

template<>
uint32_t xtd::as< uint32_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [20/37]

template<>
uint32_t xtd::as< uint32_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [21/37]

template<>
uint32_t xtd::as< uint32_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [22/37]

template<>
uint32_t xtd::as< uint32_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint32.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
uint32_t result = as<uint32_t>(value, 16);

◆ as< uint32_t >() [23/37]

template<>
uint32_t xtd::as< uint32_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [24/37]

template<>
uint32_t xtd::as< uint32_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [25/37]

template<>
uint32_t xtd::as< uint32_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [26/37]

template<>
uint32_t xtd::as< uint32_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [27/37]

template<>
uint32_t xtd::as< uint32_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [28/37]

template<>
uint32_t xtd::as< uint32_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [29/37]

template<>
uint32_t xtd::as< uint32_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [30/37]

template<>
uint32_t xtd::as< uint32_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [31/37]

template<>
uint32_t xtd::as< uint32_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [32/37]

template<>
uint32_t xtd::as< uint32_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [33/37]

template<>
uint32_t xtd::as< uint32_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [34/37]

template<>
uint32_t xtd::as< uint32_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [35/37]

template<>
uint32_t xtd::as< uint32_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [36/37]

template<>
uint32_t xtd::as< uint32_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
uint32_t result = as<uint32_t>(value);

◆ as< uint32_t >() [37/37]

template<>
uint32_t xtd::as< uint32_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
uint32_t result = as<uint32_t>(value);

◆ as< uint64_t >() [1/37]

template<>
uint64_t xtd::as< uint64_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint64_t result = as<uint64_t>(value);
uint64_t as< uint64_t >(std::any value)
Casts a type into another type.
Definition: as.h:12415

◆ as< uint64_t >() [2/37]

template<>
uint64_t xtd::as< uint64_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [3/37]

template<>
uint64_t xtd::as< uint64_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [4/37]

template<>
uint64_t xtd::as< uint64_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [5/37]

template<>
uint64_t xtd::as< uint64_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [6/37]

template<>
uint64_t xtd::as< uint64_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [7/37]

template<>
uint64_t xtd::as< uint64_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [8/37]

template<>
uint64_t xtd::as< uint64_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [9/37]

template<>
uint64_t xtd::as< uint64_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [10/37]

template<>
uint64_t xtd::as< uint64_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [11/37]

template<>
uint64_t xtd::as< uint64_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [12/37]

template<>
uint64_t xtd::as< uint64_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [13/37]

template<>
uint64_t xtd::as< uint64_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [14/37]

template<>
uint64_t xtd::as< uint64_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [15/37]

template<>
uint64_t xtd::as< uint64_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [16/37]

template<>
uint64_t xtd::as< uint64_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [17/37]

template<>
uint64_t xtd::as< uint64_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [18/37]

template<>
uint64_t xtd::as< uint64_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [19/37]

template<>
uint64_t xtd::as< uint64_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [20/37]

template<>
uint64_t xtd::as< uint64_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [21/37]

template<>
uint64_t xtd::as< uint64_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [22/37]

template<>
uint64_t xtd::as< uint64_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint64.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
uint64_t result = as<uint64_t>(value, 16);

◆ as< uint64_t >() [23/37]

template<>
uint64_t xtd::as< uint64_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [24/37]

template<>
uint64_t xtd::as< uint64_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [25/37]

template<>
uint64_t xtd::as< uint64_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [26/37]

template<>
uint64_t xtd::as< uint64_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [27/37]

template<>
uint64_t xtd::as< uint64_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [28/37]

template<>
uint64_t xtd::as< uint64_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [29/37]

template<>
uint64_t xtd::as< uint64_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [30/37]

template<>
uint64_t xtd::as< uint64_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [31/37]

template<>
uint64_t xtd::as< uint64_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [32/37]

template<>
uint64_t xtd::as< uint64_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [33/37]

template<>
uint64_t xtd::as< uint64_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [34/37]

template<>
uint64_t xtd::as< uint64_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [35/37]

template<>
uint64_t xtd::as< uint64_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [36/37]

template<>
uint64_t xtd::as< uint64_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
uint64_t result = as<uint64_t>(value);

◆ as< uint64_t >() [37/37]

template<>
uint64_t xtd::as< uint64_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
uint64_t result = as<uint64_t>(value);

◆ as< ullong_t >() [1/37]

template<>
ullong_t xtd::as< ullong_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
ullong_t result = as<ullong_t>(value);
ullong_t as< ullong_t >(std::any value)
Casts a type into another type.
Definition: as.h:13105

◆ as< ullong_t >() [2/37]

template<>
ullong_t xtd::as< ullong_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [3/37]

template<>
ullong_t xtd::as< ullong_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [4/37]

template<>
ullong_t xtd::as< ullong_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [5/37]

template<>
ullong_t xtd::as< ullong_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [6/37]

template<>
ullong_t xtd::as< ullong_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [7/37]

template<>
ullong_t xtd::as< ullong_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [8/37]

template<>
ullong_t xtd::as< ullong_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [9/37]

template<>
ullong_t xtd::as< ullong_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [10/37]

template<>
ullong_t xtd::as< ullong_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [11/37]

template<>
ullong_t xtd::as< ullong_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [12/37]

template<>
ullong_t xtd::as< ullong_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [13/37]

template<>
ullong_t xtd::as< ullong_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [14/37]

template<>
ullong_t xtd::as< ullong_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [15/37]

template<>
ullong_t xtd::as< ullong_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [16/37]

template<>
ullong_t xtd::as< ullong_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [17/37]

template<>
ullong_t xtd::as< ullong_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [18/37]

template<>
ullong_t xtd::as< ullong_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [19/37]

template<>
ullong_t xtd::as< ullong_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [20/37]

template<>
ullong_t xtd::as< ullong_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [21/37]

template<>
ullong_t xtd::as< ullong_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [22/37]

template<>
ullong_t xtd::as< ullong_t > ( const xtd::ustring value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a ullong.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
ullong_t result = as<ullong_t>(value, 16);

◆ as< ullong_t >() [23/37]

template<>
ullong_t xtd::as< ullong_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [24/37]

template<>
ullong_t xtd::as< ullong_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [25/37]

template<>
ullong_t xtd::as< ullong_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [26/37]

template<>
ullong_t xtd::as< ullong_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [27/37]

template<>
ullong_t xtd::as< ullong_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [28/37]

template<>
ullong_t xtd::as< ullong_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [29/37]

template<>
ullong_t xtd::as< ullong_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [30/37]

template<>
ullong_t xtd::as< ullong_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [31/37]

template<>
ullong_t xtd::as< ullong_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [32/37]

template<>
ullong_t xtd::as< ullong_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [33/37]

template<>
ullong_t xtd::as< ullong_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [34/37]

template<>
ullong_t xtd::as< ullong_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [35/37]

template<>
ullong_t xtd::as< ullong_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [36/37]

template<>
ullong_t xtd::as< ullong_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
ullong_t result = as<ullong_t>(value);

◆ as< ullong_t >() [37/37]

template<>
ullong_t xtd::as< ullong_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [1/30]

template<>
ustring xtd::as< ustring > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [2/30]

template<>
ustring xtd::as< ustring > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [3/30]

template<>
ustring xtd::as< ustring > ( byte_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
ustring result = as<ustring>(value, 16);
ustring as< ustring >(std::any value)
Casts a type into another type.
Definition: as.h:13795

◆ as< ustring >() [4/30]

template<>
ustring xtd::as< ustring > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [5/30]

template<>
ustring xtd::as< ustring > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [6/30]

template<>
ustring xtd::as< ustring > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [7/30]

template<>
ustring xtd::as< ustring > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [8/30]

template<>
ustring xtd::as< ustring > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [9/30]

template<>
ustring xtd::as< ustring > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [10/30]

template<>
ustring xtd::as< ustring > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [11/30]

template<>
ustring xtd::as< ustring > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [12/30]

template<>
ustring xtd::as< ustring > ( int16_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [13/30]

template<>
ustring xtd::as< ustring > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [14/30]

template<>
ustring xtd::as< ustring > ( int32_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [15/30]

template<>
ustring xtd::as< ustring > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [16/30]

template<>
ustring xtd::as< ustring > ( int64_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [17/30]

template<>
ustring xtd::as< ustring > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [18/30]

template<>
ustring xtd::as< ustring > ( llong_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [19/30]

template<>
ustring xtd::as< ustring > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [20/30]

template<>
ustring xtd::as< ustring > ( sbyte_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [21/30]

template<>
ustring xtd::as< ustring > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [22/30]

template<>
ustring xtd::as< ustring > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [23/30]

template<>
ustring xtd::as< ustring > ( uint16_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [24/30]

template<>
ustring xtd::as< ustring > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [25/30]

template<>
ustring xtd::as< ustring > ( uint32_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [26/30]

template<>
ustring xtd::as< ustring > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [27/30]

template<>
ustring xtd::as< ustring > ( uint64_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [28/30]

template<>
ustring xtd::as< ustring > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
ullong_t result = as<ullong_t>(value);

◆ as< ustring >() [29/30]

template<>
ustring xtd::as< ustring > ( ullong_t  value,
byte_t  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [30/30]

template<>
ustring xtd::as< ustring > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
ullong_t result = as<ullong_t>(value);

◆ as< wchar_t >() [1/36]

template<>
wchar_t xtd::as< wchar_t > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
wchar_t result = as<wchar_t>(value);
wchar_t as< wchar_t >(std::any value)
Casts a type into another type.
Definition: as.h:4905

◆ as< wchar_t >() [2/36]

template<>
wchar_t xtd::as< wchar_t > ( byte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
byte_t value = 42;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [3/36]

template<>
wchar_t xtd::as< wchar_t > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [4/36]

template<>
wchar_t xtd::as< wchar_t > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [5/36]

template<>
wchar_t xtd::as< wchar_t > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [6/36]

template<>
wchar_t xtd::as< wchar_t > ( char16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char16_t value = u'a';
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [7/36]

template<>
wchar_t xtd::as< wchar_t > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [8/36]

template<>
wchar_t xtd::as< wchar_t > ( char32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char32_t value = u'a';
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [9/36]

template<>
wchar_t xtd::as< wchar_t > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [10/36]

template<>
wchar_t xtd::as< wchar_t > ( char8_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
char8_t value = u8'a';
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [11/36]

template<>
wchar_t xtd::as< wchar_t > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [12/36]

template<>
wchar_t xtd::as< wchar_t > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [13/36]

template<>
wchar_t xtd::as< wchar_t > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [14/36]

template<>
wchar_t xtd::as< wchar_t > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [15/36]

template<>
wchar_t xtd::as< wchar_t > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [16/36]

template<>
wchar_t xtd::as< wchar_t > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [17/36]

template<>
wchar_t xtd::as< wchar_t > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [18/36]

template<>
wchar_t xtd::as< wchar_t > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [19/36]

template<>
wchar_t xtd::as< wchar_t > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [20/36]

template<>
wchar_t xtd::as< wchar_t > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [21/36]

template<>
wchar_t xtd::as< wchar_t > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [22/36]

template<>
wchar_t xtd::as< wchar_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
decimal_t value = 42.50l;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [23/36]

template<>
wchar_t xtd::as< wchar_t > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [24/36]

template<>
wchar_t xtd::as< wchar_t > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [25/36]

template<>
wchar_t xtd::as< wchar_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int16_t value = 42;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [26/36]

template<>
wchar_t xtd::as< wchar_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int32_t value = 42;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [27/36]

template<>
wchar_t xtd::as< wchar_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
int64_t value = 42l;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [28/36]

template<>
wchar_t xtd::as< wchar_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
llong_t value = 42ll;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [29/36]

template<>
wchar_t xtd::as< wchar_t > ( sbyte_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
sbyte_t value = 42ll;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [30/36]

template<>
wchar_t xtd::as< wchar_t > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [31/36]

template<>
wchar_t xtd::as< wchar_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint16_t value = 42u;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [32/36]

template<>
wchar_t xtd::as< wchar_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint32_t value = 42u;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [33/36]

template<>
wchar_t xtd::as< wchar_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
uint64_t value = 42ul;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [34/36]

template<>
wchar_t xtd::as< wchar_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Namespace
xtd
Library
xtd.core
Examples
ullong_t value = 42ull;
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [35/36]

template<>
wchar_t xtd::as< wchar_t > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"42";
wchar_t result = as<wchar_t>(value);

◆ as< wchar_t >() [36/36]

template<>
wchar_t xtd::as< wchar_t > ( wchar_t  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Namespace
xtd
Library
xtd.core
Examples
wchar_t value = u'a';
wchar_t result = as<wchar_t>(value);

◆ as< xtd::ustring >() [1/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [2/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char16_t* value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [3/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char32_t* value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [4/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
char8_t* value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [5/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [6/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char16_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char16_t* value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [7/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char32_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char32_t* value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [8/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char8_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const char8_t* value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [9/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [10/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [11/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [12/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [13/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [14/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const wchar_t* value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [15/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [16/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [17/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [18/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [19/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [20/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [21/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( wchar_t *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
wchar_t* value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [22/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
ustring result = as<ustring>(value);

◆ cnull()

std::ostream xtd::cnull ( nullptr  )
inline

#include <xtd.core/include/xtd/cnull.h>

Provides a null std::ostream.

Namespace
xtd
Library
xtd.core

◆ ctrace()

std::ostream xtd::ctrace ( nullptr  )
inline

#include <xtd.core/include/xtd/ctrace.h>

Provides an std::ostream for xtd::diagnostics::trace.

Namespace
xtd
Library
xtd.core

◆ is() [1/6]

template<typename type_t , typename param_t >
bool xtd::is ( const param_t &  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core

◆ is() [2/6]

template<typename type_t , typename param_t >
bool xtd::is ( const param_t *  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core

◆ is() [3/6]

template<typename type_t , typename param_t >
bool xtd::is ( param_t &  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core

◆ is() [4/6]

template<typename type_t , typename param_t >
bool xtd::is ( param_t *  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core

◆ is() [5/6]

template<typename type_t >
bool xtd::is ( std::any  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core

◆ is() [6/6]

template<typename new_type_t , typename current_type_t >
bool xtd::is ( std::shared_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core

◆ is< bool >()

template<>
bool xtd::is< bool > ( bool  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
bool b = false;
std::cout << "b " << is<bool>(b) ? "is" : "isn't" << " bool" << endl;
}
bool is< bool >(bool value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:60
@ b
The B key.

◆ is< decimal_t >()

template<>
bool xtd::is< decimal_t > ( decimal_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
decimal_t d = 4.2;
std::cout << "d " << is<decimal_t>(d) ? "is" : "isn't" << " decimal_t" << endl;
}
bool is< decimal_t >(decimal_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:78
@ d
The D key.

◆ is< double >()

template<>
bool xtd::is< double > ( double  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
double d = 4.2;
std::cout << "d " << is<double>(d) ? "is" : "isn't" << " double" << endl;
}
bool is< double >(double value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:96

◆ is< float >()

template<>
bool xtd::is< float > ( float  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
float f = 4.2;
std::cout << "f " << is<float>(f) ? "is" : "isn't" << " float" << endl;
}
bool is< float >(float value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:114
@ f
The F key.

◆ is< int16_t >()

template<>
bool xtd::is< int16_t > ( int16_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
int16_t i = 42;
std::cout << "i " << is<int16_t>(i) ? "is" : "isn't" << " int16_t" << endl;
}
bool is< int16_t >(int16_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:150
@ i
The I key.

◆ is< int32_t >()

template<>
bool xtd::is< int32_t > ( int32_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
int32_t i = 42;
std::cout << "i " << is<int32_t>(i) ? "is" : "isn't" << " int32_t" << endl;
}
bool is< int32_t >(int32_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:168

◆ is< int64_t >()

template<>
bool xtd::is< int64_t > ( int64_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
int64_t i = 42;
std::cout << "i " << is<int64_t>(i) ? "is" : "isn't" << " int64_t" << endl;
}
bool is< int64_t >(int64_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:186

◆ is< int8_t >()

template<>
bool xtd::is< int8_t > ( int8_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
int8_t i = 42;
std::cout << "i " << is<int8_t>(i) ? "is" : "isn't" << " int8_t" << endl;
}
bool is< int8_t >(int8_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:132

◆ is< llong_t >()

template<>
bool xtd::is< llong_t > ( llong_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
llong_t i = 42;
std::cout << "i " << is<llong_t>(i) ? "is" : "isn't" << " llong_t" << endl;
}
bool is< llong_t >(llong_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:204

◆ is< std::any >()

template<>
bool xtd::is< std::any > ( std::any  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core

◆ is< uint16_t >()

template<>
bool xtd::is< uint16_t > ( uint16_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
uint16_t u = 42;
std::cout << "u " << is<uint16_t>(u) ? "is" : "isn't" << " uint16_t" << endl;
}
bool is< uint16_t >(uint16_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:240

◆ is< uint32_t >()

template<>
bool xtd::is< uint32_t > ( uint32_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
uint32_t u = 42;
std::cout << "u " << is<uint32_t>(u) ? "is" : "isn't" << " uint32_t" << endl;
}
bool is< uint32_t >(uint32_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:258

◆ is< uint64_t >()

template<>
bool xtd::is< uint64_t > ( uint64_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
uint64_t u = 42;
std::cout << "u " << is<uint64_t>(u) ? "is" : "isn't" << " uint64_t" << endl;
}
bool is< uint64_t >(uint64_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:276

◆ is< uint8_t >()

template<>
bool xtd::is< uint8_t > ( uint8_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
uint8_t u = 42;
std::cout << "u " << is<uint8_t>(u) ? "is" : "isn't" << " uint8_t" << endl;
}
bool is< uint8_t >(uint8_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:222

◆ is< ullong_t >()

template<>
bool xtd::is< ullong_t > ( ullong_t  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Namespace
xtd
Library
xtd.core
Examples
int main() {
ullong_t u = 42;
std::cout << "u " << is<ullong_t>(i) ? "is" : "isn't" << " ullong_t" << endl;
}
bool is< ullong_t >(ullong_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:294

◆ operator""_b() [1/7]

byte_t xtd::operator""_b ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_b << std::endl;

◆ operator""_b() [2/7]

byte_t xtd::operator""_b ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_b << std::endl;

◆ operator""_b() [3/7]

byte_t xtd::operator""_b ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_b << std::endl;

◆ operator""_b() [4/7]

byte_t xtd::operator""_b ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_b << std::endl;

◆ operator""_b() [5/7]

byte_t xtd::operator""_b ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_b << std::endl;

◆ operator""_b() [6/7]

byte_t xtd::operator""_b ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_b << std::endl;

◆ operator""_b() [7/7]

byte_t xtd::operator""_b ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_b << std::endl;

◆ operator""_c() [1/5]

char32_t xtd::operator""_c ( char  c)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into char32._t.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 'a'_c << std::endl;

◆ operator""_c() [2/5]

char32_t xtd::operator""_c ( char16_t  c)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into char32._t.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u'a'_c << std::endl;

◆ operator""_c() [3/5]

char32_t xtd::operator""_c ( char32_t  c)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into char32._t.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U'a'_c << std::endl;

◆ operator""_c() [4/5]

char32_t xtd::operator""_c ( unsigned long long  c)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into char32._t.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 49_c << std::endl;

◆ operator""_c() [5/5]

char32_t xtd::operator""_c ( wchar_t  c)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into char32._t.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L'a'_c << std::endl;

◆ operator""_d() [1/7]

double xtd::operator""_d ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_d << std::endl;

◆ operator""_d() [2/7]

double xtd::operator""_d ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_d << std::endl;

◆ operator""_d() [3/7]

double xtd::operator""_d ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_d << std::endl;

◆ operator""_d() [4/7]

double xtd::operator""_d ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_d << std::endl;

◆ operator""_d() [5/7]

double xtd::operator""_d ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_d << std::endl;

◆ operator""_d() [6/7]

double xtd::operator""_d ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_d << std::endl;

◆ operator""_d() [7/7]

double xtd::operator""_d ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_d << std::endl;

◆ operator""_f() [1/7]

float xtd::operator""_f ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_f << std::endl;

◆ operator""_f() [2/7]

float xtd::operator""_f ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_f << std::endl;

◆ operator""_f() [3/7]

float xtd::operator""_f ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_f << std::endl;

◆ operator""_f() [4/7]

float xtd::operator""_f ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_f << std::endl;

◆ operator""_f() [5/7]

float xtd::operator""_f ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_f << std::endl;

◆ operator""_f() [6/7]

float xtd::operator""_f ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_f << std::endl;

◆ operator""_f() [7/7]

float xtd::operator""_f ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_f << std::endl;

◆ operator""_s() [1/7]

xtd::ustring xtd::operator""_s ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = "This is a "_s + "simple test"_s;
std::cout << s << std::endl;
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
@ s
The S key.

◆ operator""_s() [2/7]

xtd::ustring xtd::operator""_s ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = U"This is a "_s + U"simple test"_s;
std::cout << s << std::endl;

◆ operator""_s() [3/7]

xtd::ustring xtd::operator""_s ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = u"This is a "_s + u"simple test"_s;
std::cout << s << std::endl;

◆ operator""_s() [4/7]

xtd::ustring xtd::operator""_s ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = u8"This is a "_s + u8"simple test"_s;
std::cout << s << std::endl;

◆ operator""_s() [5/7]

xtd::ustring xtd::operator""_s ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = L"This is a "_s + L"simple test"_s;
std::cout << s << std::endl;

◆ operator""_s() [6/7]

xtd::ustring xtd::operator""_s ( long double  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = "This is a "_s + "simple test"_s;
std::cout << s << std::endl;

◆ operator""_s() [7/7]

xtd::ustring xtd::operator""_s ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_s;
std::cout << s << std::endl;

◆ operator""_s16() [1/7]

int16_t xtd::operator""_s16 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_s16 << std::endl;

◆ operator""_s16() [2/7]

int16_t xtd::operator""_s16 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_s16 << std::endl;

◆ operator""_s16() [3/7]

int16_t xtd::operator""_s16 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_s16 << std::endl;

◆ operator""_s16() [4/7]

int16_t xtd::operator""_s16 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_s16 << std::endl;

◆ operator""_s16() [5/7]

int16_t xtd::operator""_s16 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_s16 << std::endl;

◆ operator""_s16() [6/7]

int16_t xtd::operator""_s16 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_s16 << std::endl;

◆ operator""_s16() [7/7]

int16_t xtd::operator""_s16 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_s16 << std::endl;

◆ operator""_s32() [1/7]

int32_t xtd::operator""_s32 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_s32 << std::endl;

◆ operator""_s32() [2/7]

int32_t xtd::operator""_s32 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_s32 << std::endl;

◆ operator""_s32() [3/7]

int32_t xtd::operator""_s32 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_s32 << std::endl;

◆ operator""_s32() [4/7]

int32_t xtd::operator""_s32 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_s32 << std::endl;

◆ operator""_s32() [5/7]

int32_t xtd::operator""_s32 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_s32 << std::endl;

◆ operator""_s32() [6/7]

int32_t xtd::operator""_s32 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_s32 << std::endl;

◆ operator""_s32() [7/7]

int32_t xtd::operator""_s32 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_s32 << std::endl;

◆ operator""_s64() [1/7]

int64_t xtd::operator""_s64 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_s64 << std::endl;

◆ operator""_s64() [2/7]

int64_t xtd::operator""_s64 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_s64 << std::endl;

◆ operator""_s64() [3/7]

int64_t xtd::operator""_s64 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_s64 << std::endl;

◆ operator""_s64() [4/7]

int64_t xtd::operator""_s64 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_s64 << std::endl;

◆ operator""_s64() [5/7]

int64_t xtd::operator""_s64 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_s64 << std::endl;

◆ operator""_s64() [6/7]

int64_t xtd::operator""_s64 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_s64 << std::endl;

◆ operator""_s64() [7/7]

int64_t xtd::operator""_s64 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_s64 << std::endl;

◆ operator""_s8() [1/7]

int8_t xtd::operator""_s8 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_s8 << std::endl;

◆ operator""_s8() [2/7]

int8_t xtd::operator""_s8 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_s8 << std::endl;

◆ operator""_s8() [3/7]

int8_t xtd::operator""_s8 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_s8 << std::endl;

◆ operator""_s8() [4/7]

int8_t xtd::operator""_s8 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_s8 << std::endl;

◆ operator""_s8() [5/7]

int8_t xtd::operator""_s8 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_s8 << std::endl;

◆ operator""_s8() [6/7]

int8_t xtd::operator""_s8 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_s8 << std::endl;

◆ operator""_s8() [7/7]

int8_t xtd::operator""_s8 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_s8 << std::endl;

◆ operator""_sb()

xtd::ustring xtd::operator""_sb ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sb;
std::cout << s << std::endl;

◆ operator""_sb16()

xtd::ustring xtd::operator""_sb16 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sb16;
std::cout << s << std::endl;

◆ operator""_sb2()

xtd::ustring xtd::operator""_sb2 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sb2;
std::cout << s << std::endl;

◆ operator""_sb32()

xtd::ustring xtd::operator""_sb32 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sb32;
std::cout << s << std::endl;

◆ operator""_sb4()

xtd::ustring xtd::operator""_sb4 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sb4;
std::cout << s << std::endl;

◆ operator""_sb64()

xtd::ustring xtd::operator""_sb64 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sb64;
std::cout << s << std::endl;

◆ operator""_sb8()

xtd::ustring xtd::operator""_sb8 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sb8;
std::cout << s << std::endl;

◆ operator""_sx()

xtd::ustring xtd::operator""_sx ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sx;
std::cout << s << std::endl;

◆ operator""_sX()

xtd::ustring xtd::operator""_sX ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sx;
std::cout << s << std::endl;

◆ operator""_sx2()

xtd::ustring xtd::operator""_sx2 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sx2;
std::cout << s << std::endl;

◆ operator""_sX2()

xtd::ustring xtd::operator""_sX2 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sx2;
std::cout << s << std::endl;

◆ operator""_sx4()

xtd::ustring xtd::operator""_sx4 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sx4;
std::cout << s << std::endl;

◆ operator""_sX4()

xtd::ustring xtd::operator""_sX4 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_sx4;
std::cout << s << std::endl;

◆ operator""_sx8()

xtd::ustring xtd::operator""_sx8 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_s;
std::cout << s << std::endl;

◆ operator""_sX8()

xtd::ustring xtd::operator""_sX8 ( unsigned long long  s)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into xtd::ustring.

Namespace
xtd
Library
xtd.core
Examples
xtd::ustring s = 49_s;
std::cout << s << std::endl;

◆ operator""_t() [1/5]

const char* xtd::operator""_t ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to translate specified string into locale.

Namespace
xtd
Library
xtd.core

◆ operator""_t() [2/5]

xtd::ustring xtd::operator""_t ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to translate specified string into locale.

Namespace
xtd
Library
xtd.core

◆ operator""_t() [3/5]

xtd::ustring xtd::operator""_t ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to translate specified string into locale.

Namespace
xtd
Library
xtd.core

◆ operator""_t() [4/5]

xtd::ustring xtd::operator""_t ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to translate specified string into locale.

Namespace
xtd
Library
xtd.core

◆ operator""_t() [5/5]

xtd::ustring xtd::operator""_t ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to translate specified string into locale.

Namespace
xtd
Library
xtd.core

◆ operator""_u16() [1/7]

uint16_t xtd::operator""_u16 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_u16 << std::endl;

◆ operator""_u16() [2/7]

uint16_t xtd::operator""_u16 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_u16 << std::endl;

◆ operator""_u16() [3/7]

uint16_t xtd::operator""_u16 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_u16 << std::endl;

◆ operator""_u16() [4/7]

uint16_t xtd::operator""_u16 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_u16 << std::endl;

◆ operator""_u16() [5/7]

uint16_t xtd::operator""_u16 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_u16 << std::endl;

◆ operator""_u16() [6/7]

uint16_t xtd::operator""_u16 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_u16 << std::endl;

◆ operator""_u16() [7/7]

uint16_t xtd::operator""_u16 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_u16 << std::endl;

◆ operator""_u32() [1/7]

uint32_t xtd::operator""_u32 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_u32 << std::endl;

◆ operator""_u32() [2/7]

uint32_t xtd::operator""_u32 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_u32 << std::endl;

◆ operator""_u32() [3/7]

uint32_t xtd::operator""_u32 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_u32 << std::endl;

◆ operator""_u32() [4/7]

uint32_t xtd::operator""_u32 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_u32 << std::endl;

◆ operator""_u32() [5/7]

uint32_t xtd::operator""_u32 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_u32 << std::endl;

◆ operator""_u32() [6/7]

uint32_t xtd::operator""_u32 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_u32 << std::endl;

◆ operator""_u32() [7/7]

uint32_t xtd::operator""_u32 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_u32 << std::endl;

◆ operator""_u64() [1/7]

uint64_t xtd::operator""_u64 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_u64 << std::endl;

◆ operator""_u64() [2/7]

uint64_t xtd::operator""_u64 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_u64 << std::endl;

◆ operator""_u64() [3/7]

uint64_t xtd::operator""_u64 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_u64 << std::endl;

◆ operator""_u64() [4/7]

uint64_t xtd::operator""_u64 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_u64 << std::endl;

◆ operator""_u64() [5/7]

uint64_t xtd::operator""_u64 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_u64 << std::endl;

◆ operator""_u64() [6/7]

uint64_t xtd::operator""_u64 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_u64 << std::endl;

◆ operator""_u64() [7/7]

uint64_t xtd::operator""_u64 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_u64 << std::endl;

◆ operator""_u8() [1/7]

uint8_t xtd::operator""_u8 ( const char *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << "125"_u8 << std::endl;

◆ operator""_u8() [2/7]

uint8_t xtd::operator""_u8 ( const char16_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u"125"_u8 << std::endl;

◆ operator""_u8() [3/7]

uint8_t xtd::operator""_u8 ( const char32_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << U"125"_u8 << std::endl;

◆ operator""_u8() [4/7]

uint8_t xtd::operator""_u8 ( const char8_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << u8"125"_u8 << std::endl;

◆ operator""_u8() [5/7]

uint8_t xtd::operator""_u8 ( const wchar_t *  s,
size_t  n 
)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << L"125"_u8 << std::endl;

◆ operator""_u8() [6/7]

uint8_t xtd::operator""_u8 ( long double  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 1.6_u8 << std::endl;

◆ operator""_u8() [7/7]

uint8_t xtd::operator""_u8 ( unsigned long long  n)

#include <xtd.core/include/xtd/literals.h>

Used to convert specified value into byte.

Namespace
xtd
Library
xtd.core
Examples
std::cout << 54_u8 << std::endl;

◆ parse() [1/6]

template<typename value_t >
value_t xtd::parse ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse() [2/6]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
const std::string &  fmt 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse() [3/6]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
number_styles   
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse() [4/6]

template<typename value_t >
value_t xtd::parse ( const std::u16string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse() [5/6]

template<typename value_t >
value_t xtd::parse ( const std::u32string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse() [6/6]

template<typename value_t >
value_t xtd::parse ( const std::wstring &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< bool >()

template<>
bool xtd::parse< bool > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< char >() [1/2]

template<>
char xtd::parse< char > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< char >() [2/2]

template<>
char xtd::parse< char > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< double >() [1/2]

template<>
double xtd::parse< double > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< double >() [2/2]

template<>
double xtd::parse< double > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [1/2]

template<>
float xtd::parse< float > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [2/2]

template<>
float xtd::parse< float > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< int >() [1/2]

template<>
int xtd::parse< int > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< int >() [2/2]

template<>
int xtd::parse< int > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< int8_t >() [1/2]

template<>
int8_t xtd::parse< int8_t > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< int8_t >() [2/2]

template<>
int8_t xtd::parse< int8_t > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< long >() [1/2]

template<>
long xtd::parse< long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< long >() [2/2]

template<>
long xtd::parse< long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [1/2]

template<>
long double xtd::parse< long double > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [2/2]

template<>
long double xtd::parse< long double > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< long long >() [1/2]

template<>
long long xtd::parse< long long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< long long >() [2/2]

template<>
long long xtd::parse< long long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< short >() [1/2]

template<>
short xtd::parse< short > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< short >() [2/2]

template<>
short xtd::parse< short > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< std::string >()

template<>
std::string xtd::parse< std::string > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned char >() [1/2]

template<>
unsigned char xtd::parse< unsigned char > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned char >() [2/2]

template<>
unsigned char xtd::parse< unsigned char > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned int >() [1/2]

template<>
unsigned int xtd::parse< unsigned int > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned int >() [2/2]

template<>
unsigned int xtd::parse< unsigned int > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long >() [1/2]

template<>
unsigned long xtd::parse< unsigned long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long >() [2/2]

template<>
unsigned long xtd::parse< unsigned long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long long >() [1/2]

template<>
unsigned long long xtd::parse< unsigned long long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long long >() [2/2]

template<>
unsigned long long xtd::parse< unsigned long long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned short >() [1/2]

template<>
unsigned short xtd::parse< unsigned short > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned short >() [2/2]

template<>
unsigned short xtd::parse< unsigned short > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ to_ptr() [1/6]

template<typename new_type_t , typename current_type_t >
static const new_type_t* xtd::convert_pointer::to_ptr ( const current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [2/6]

template<typename new_type_t , typename current_type_t >
static const new_type_t* xtd::convert_pointer::to_ptr ( const current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [3/6]

template<typename type_t >
static const type_t* xtd::convert_pointer::to_ptr ( const type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [4/6]

template<typename new_type_t , typename current_type_t >
static new_type_t* xtd::convert_pointer::to_ptr ( current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [5/6]

template<typename new_type_t , typename current_type_t >
static new_type_t* xtd::convert_pointer::to_ptr ( current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [6/6]

template<typename type_t >
static type_t* xtd::convert_pointer::to_ptr ( type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ref() [1/8]

template<typename new_type_t , typename current_type_t >
static const new_type_t& xtd::convert_pointer::to_ref ( const current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [2/8]

template<typename new_type_t , typename current_type_t >
static const new_type_t& xtd::convert_pointer::to_ref ( const current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [3/8]

template<typename type_t >
static const type_t& xtd::convert_pointer::to_ref ( const type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const button& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [4/8]

template<typename type_t >
static const type_t& xtd::convert_pointer::to_ref ( const type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const button& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [5/8]

template<typename new_type_t , typename current_type_t >
static new_type_t& xtd::convert_pointer::to_ref ( current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [6/8]

template<typename new_type_t , typename current_type_t >
static new_type_t& xtd::convert_pointer::to_ref ( current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [7/8]

template<typename type_t >
static type_t& xtd::convert_pointer::to_ref ( type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
button& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [8/8]

template<typename type_t >
static type_t& xtd::convert_pointer::to_ref ( type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
button& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [1/3]

template<typename new_type_t , typename current_type_t >
static std::shared_ptr<new_type_t> xtd::convert_pointer::to_shared_ptr ( const std::shared_ptr< current_type_t > &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [2/3]

template<typename new_type_t , typename current_type_t >
static std::shared_ptr<new_type_t> xtd::convert_pointer::to_shared_ptr ( std::shared_ptr< current_type_t > &&  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [3/3]

template<typename new_type_t , typename current_type_t >
static std::shared_ptr<new_type_t> xtd::convert_pointer::to_shared_ptr ( std::shared_ptr< current_type_t > &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::shared_ptr<control> result = as<xtd::forms::control>(std::make_shared<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_string() [1/49]

template<>
std::string xtd::to_string ( const bool &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [2/49]

template<>
std::wstring xtd::to_string ( const bool &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [3/49]

template<>
std::string xtd::to_string ( const char &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [4/49]

template<>
std::wstring xtd::to_string ( const char &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [5/49]

template<>
std::string xtd::to_string ( const char16_t &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [6/49]

template<>
std::wstring xtd::to_string ( const char16_t &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [7/49]

template<>
std::string xtd::to_string ( const char32_t &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [8/49]

template<>
std::wstring xtd::to_string ( const char32_t &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [9/49]

template<>
std::string xtd::to_string ( const char8_t &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [10/49]

template<>
std::wstring xtd::to_string ( const char8_t &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [11/49]

template<>
std::string xtd::to_string ( const double &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [12/49]

template<>
std::wstring xtd::to_string ( const double &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [13/49]

template<>
std::string xtd::to_string ( const float &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [14/49]

template<>
std::wstring xtd::to_string ( const float &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [15/49]

template<>
std::string xtd::to_string ( const int &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [16/49]

template<>
std::wstring xtd::to_string ( const int &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [17/49]

template<>
std::string xtd::to_string ( const int8_t &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [18/49]

template<>
std::wstring xtd::to_string ( const int8_t &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [19/49]

template<>
std::string xtd::to_string ( const long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [20/49]

template<>
std::wstring xtd::to_string ( const long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [21/49]

template<>
std::string xtd::to_string ( const long double &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [22/49]

template<>
std::wstring xtd::to_string ( const long double &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [23/49]

template<>
std::string xtd::to_string ( const long long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [24/49]

template<>
std::wstring xtd::to_string ( const long long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [25/49]

template<>
std::string xtd::to_string ( const short &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [26/49]

template<>
std::wstring xtd::to_string ( const short &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [27/49]

template<typename type_t , typename Period >
std::string xtd::to_string ( const std::chrono::duration< type_t, Period > &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [28/49]

template<typename type_t , typename Period >
std::wstring xtd::to_string ( const std::chrono::duration< type_t, Period > &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [29/49]

template<>
std::string xtd::to_string ( const std::chrono::system_clock::time_point &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [30/49]

template<>
std::wstring xtd::to_string ( const std::chrono::system_clock::time_point &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [31/49]

template<>
std::string xtd::to_string ( const std::tm &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [32/49]

template<>
std::wstring xtd::to_string ( const std::tm &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [33/49]

template<>
std::wstring xtd::to_string ( const std::wstring &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [34/49]

template<>
std::string xtd::to_string ( const unsigned char &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [35/49]

template<>
std::wstring xtd::to_string ( const unsigned char &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [36/49]

template<>
std::string xtd::to_string ( const unsigned int &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [37/49]

template<>
std::wstring xtd::to_string ( const unsigned int &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [38/49]

template<>
std::string xtd::to_string ( const unsigned long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [39/49]

template<>
std::wstring xtd::to_string ( const unsigned long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [40/49]

template<>
std::string xtd::to_string ( const unsigned long long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [41/49]

template<>
std::wstring xtd::to_string ( const unsigned long long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [42/49]

template<>
std::string xtd::to_string ( const unsigned short &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [43/49]

template<>
std::wstring xtd::to_string ( const unsigned short &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [44/49]

template<typename value_t >
std::string xtd::to_string ( const value_t &  value,
const std::string &  fmt 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
Remarks
for more information about format see Format.

◆ to_string() [45/49]

template<typename value_t >
std::string xtd::to_string ( const value_t &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [46/49]

template<typename value_t >
std::wstring xtd::to_string ( const value_t &  value,
const std::wstring &  fmt 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
Remarks
for more information about format see Format.

◆ to_string() [47/49]

template<typename value_t >
std::wstring xtd::to_string ( const value_t &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [48/49]

template<>
std::string xtd::to_string ( const wchar_t &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [49/49]

template<>
std::wstring xtd::to_string ( const wchar_t &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_unique_ptr() [1/2]

template<typename new_type_t , typename current_type_t >
static std::unique_ptr<new_type_t> xtd::convert_pointer::to_unique_ptr ( std::unique_ptr< current_type_t > &&  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<control> result = as<xtd::forms::control>(std::make_unique<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_unique_ptr() [2/2]

template<typename new_type_t , typename current_type_t >
static std::unique_ptr<new_type_t> xtd::convert_pointer::to_unique_ptr ( std::unique_ptr< current_type_t > &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<button> value = std::make_unique<xtd::forms::button>();
std::unique_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ try_parse() [1/2]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ try_parse() [2/2]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const std::basic_string< char_t > &  str,
value_t &  value 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a type into a string.

Namespace
xtd
Library
xtd.core

◆ unused()

template<typename ... Args>
void xtd::unused ( Args &&...  args)

#include <xtd.core/include/xtd/unused.h>

It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated.

Namespace
xtd
Library
xtd.core
Parameters
argsvariables to suppress the unused warning
Examples
This example sho how to use Unused():

Variable Documentation

◆ __cdebugstreambuf__

std::ostream cdebug& xtd::__cdebugstreambuf__
inline

#include <xtd.core/include/xtd/cdebug.h>

Provides an std::ostream for xtd::diagnostics::debug.

Namespace
xtd
Library
xtd.core