xtd 0.2.0
Loading...
Searching...
No Matches

Definition

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

Classes

class  xtd::abstract_object
 Represent an abstract class. More...
 
class  xtd::access_violation_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::any_object
 Represent a polymorphic wrapper capable of holding any type. More...
 
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::array_< type_t, 1, allocator_t >
 Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays. More...
 
class  xtd::array_< type_t, 2, allocator_t >
 Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays. More...
 
class  xtd::array_< type_t, 3, allocator_t >
 Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays. More...
 
class  xtd::array_abstract_object
 Abstract object that represent array. More...
 
class  xtd::array_<>
 Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays. More...
 
class  xtd::attribute
 Represents the base class for custom attributes. More...
 
class  xtd::background_color
 Represent background color output manipulator class. More...
 
class  xtd::basic_array< type_t, allocator_t >
 Base object that represent array. More...
 
class  xtd::basic_string< char_t, traits_t, allocator_t >
 Represents text as a sequence of character units. 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::box< type_t >
 Represents a boxed object. More...
 
class  xtd::box_char< type_t >
 Represents a boxed char object. More...
 
class  xtd::box_floating_point< type_t >
 Represents a boxed floating point object. More...
 
class  xtd::box_integer< type_t >
 Represents a boxed integer object. More...
 
struct  xtd::call_once
 The xtd::call_once struct can be used to execute a routine exactly once. This can be used to initialise data in a thread-safe way. More...
 
class  xtd::collections::generic::comparer< type_t >
 Provides a base class for implementations of the xtd::collections::generic::icomparer <type_t> generic interface. More...
 
class  xtd::collections::generic::empty_comparer< type_t >
 Provides an empty comparer class. More...
 
class  xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >
 Internal enumarable iterators definition. More...
 
class  xtd::collections::generic::enumerator< type_t >
 Supports a simple iteration over a generic collection. More...
 
struct  xtd::collections::generic::helpers::comparer< type_t >
 Implements a function object for compare data. More...
 
struct  xtd::collections::generic::helpers::equator< key_t >
 Implements a function object for performing comparisons. Unless specialised, invokes operator== on type type_t. xtd::equator with the key and the value strongly typed to be std::any. More...
 
struct  xtd::collections::generic::helpers::hasher< key_t >
 Implements a function object for hashing data. More...
 
class  xtd::collections::generic::icollection< type_t >
 Defines methods to manipulate generic collections. More...
 
class  xtd::collections::generic::icomparer< type_t >
 Exposes a method that compares two objects. More...
 
class  xtd::collections::generic::ienumerable< type_t >
 Exposes the enumerator, which supports a simple iteration over a collection of a specified type. More...
 
class  xtd::collections::generic::ienumerator< type_t >
 Supports a simple iteration over a generic collection. More...
 
class  xtd::collections::generic::iequality_comparer< type_t >
 Defines methods to support the comparison of objects for equality. More...
 
class  xtd::collections::generic::ilist< type_t >
 Represents a collection of objects that can be individually accessed by index. More...
 
class  xtd::collections::generic::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::collections::generic::list< type_t, allocator_t >
 Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists. 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::collections::object_model::read_only_collection< type_t >
 Provides the base class for a generic read-only collection. More...
 
class  xtd::comparison_operators< type_t, comparable_t >
 Internal comparable operators definition. More...
 
class  xtd::compiler
 Represents information about c++ libraries, such as the version and standard identifier. This class cannot be inherited. More...
 
class  xtd::configuration::file_settings
 Represents an object for storing and retrieving configuration information using text files in INI format. More...
 
class  xtd::configuration::settings
 Represent settings associate to the application. 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...
 
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::date_time
 Represents an instant in time, typically expressed as a date and time of day. 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::distribution
 Represents information about an operating system distribution, such as the version and name. This class cannot be inherited. 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::enum_object< enum_t >
 Provides the base class for enumerations. More...
 
class  xtd::enum_object< std::nullptr_t >
 Provides the base class for enumerations. More...
 
struct  xtd::enum_register< enum_t >
 Provides the registration struct for enumerations. More...
 
struct  xtd::enum_set_attribute< enum_t >
 Provides the set attribute struct for enumerations. More...
 
class  xtd::environment
 The environment class. More...
 
class  xtd::equality_operators< type_t, equatable_t >
 Internal comparable operators definition. 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::exception
 Defines the base class for predefined exceptions in the xtd namespace. 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::h_result
 Contains the HRESULT values used by xtd. More...
 
class  xtd::hash_code
 Combines the hash code for multiple values into a single hash code. More...
 
class  xtd::iasync_result
 Represents the status of an asynchronous operation. More...
 
class  xtd::iclonable
 Supports cloning, which creates a new instance of a class with the same value as an existing instance. 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::iformatable
 Provides functionality to format the value of an object into a string representation. 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::array_< type_t, rank_size, allocator_t >
 Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays. More...
 
class  xtd::interrupt_exception
 The exception that is thrown when a method call is invalid for the object's current state. 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::binary_reader
 Reads primitive data types as binary values in a specific encoding. More...
 
class  xtd::io::binary_writer
 Writes primitive types in binary to a stream and supports writing strings. More...
 
class  xtd::io::directory
 Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. More...
 
class  xtd::io::directory_info
 Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. 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_info
 Provides access to information on a drive. 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_info
 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_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::file_system_info
 Provides the base class for both xtd::io::file_info and xtd::io::directory_info objects. More...
 
class  xtd::io::io_exception
 The exception that is thrown when an I/O error occurs. 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::text_reader
 Represents a reader that can read a sequential series of characters. More...
 
class  xtd::io::null_text_reader
 Represents a null text reader. More...
 
class  xtd::io::synchronized_text_reader
 Represents a synchronized text reader. More...
 
class  xtd::io::text_writer
 Represents a writer that can write a sequential series of characters. More...
 
class  xtd::io::null_text_writer
 Represents a null text writer. More...
 
class  xtd::io::synchronized_text_writer
 Represents a synchronized text writer. More...
 
class  xtd::iobservable< type_t >
 Provides a mechanism for receiving push-based notifications. More...
 
class  xtd::iobserver< type_t >
 Provides a mechanism for receiving push-based notifications. More...
 
class  xtd::iprogress< type_t >
 Defines a provider for progress updates. More...
 
class  xtd::istringable
 Provides a way to represent the current object as a string. More...
 
class  xtd::isynchronize_invoke
 Provides a way to synchronously or asynchronously execute a delegate. 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::memory_information
 Represents information about the memory. This class is static. 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...
 
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::out_of_memory_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. 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::non_const_overload< args_t >
 Represents class that use to determine one of non const overloaded methods. More...
 
struct  xtd::const_overload< args_t >
 Represents class that use to determine one of const overloaded methods. 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::program_exit_event_args
 Provides data for the environment program exit event. 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::rank_exception
 The exception that is thrown when an array with the wrong number of dimensions is passed to a method. More...
 
class  xtd::reflection::assembly
 Represents an assembly, which is a reusable, versionable, and self-describing building block of an application. More...
 
class  xtd::reflection::assembly_company_attribute
 Defines a company name custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_configuration_attribute
 Specifies the build configuration, such as retail or debug, for an assembly. More...
 
class  xtd::reflection::assembly_copyright_attribute
 Defines a copyright custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_culture_attribute
 Specifies which culture the assembly supports. More...
 
class  xtd::reflection::assembly_description_attribute
 Provides a text description for an assembly. More...
 
class  xtd::reflection::assembly_file_version_attribute
 Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number. More...
 
class  xtd::reflection::assembly_guid_attribute
 Specifies the guid of the assembly being attributed. More...
 
class  xtd::reflection::assembly_identifier_attribute
 Specifies the identifier of the assembly being attributed. More...
 
class  xtd::reflection::assembly_name_attribute
 Specifies a name for an assembly. More...
 
class  xtd::reflection::assembly_product_attribute
 Defines a product name custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_title_attribute
 Specifies a title for an assembly. More...
 
class  xtd::reflection::assembly_trademark_attribute
 Defines a trademark custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_version_attribute
 Specifies the version of the assembly being attributed. More...
 
class  xtd::reset_color
 Represent reset color output manipulator class. More...
 
class  xtd::runtime::exception_services::exception_dispatch_info
 Represents an exception whose state is captured at a certain point in code. More...
 
struct  xtd::scope_exit
 Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) technique. It binds resource acquisition and release to initialization and destruction of a variable that holds the resource. There are times when writing a special class for such a variable is not worth the effort. This is when xtd xtd::scope_exit comes into play. 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::security::security_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  xtd::signal_cancel_event_args
 Provides data for the environment signal event. This class cannot be inherited. More...
 
class  xtd::software_termination_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::source_location
 The xtd::source_location class represents certain information about the source code, such as file names, line numbers, and function names. Previously, functions that desire to obtain this information about the call site (for logging, testing, or debugging purposes) must use macros so that predefined macros like __LINE__ and __FILE__ are expanded in the context of the caller. The xtd::source_location class provides a better alternative. More...
 
class  xtd::speech::synthesis::prompt
 Represents information about what can be rendered, either text or an audio file, by the xtd::speech::synthesis::speech_synthesizer. More...
 
class  xtd::speech::synthesis::prompt_event_args
 Provides data for the method_name_completed event. More...
 
class  xtd::speech::synthesis::speech_synthesizer
 Provides access to the functionality of an installed speech synthesis engine. More...
 
class  xtd::speech::synthesis::state_changed_event_args
 Returns data from the xtd::speech::synthesis::speech_synthesizer::state_changed event. More...
 
class  xtd::startup
 Defines the xtd::startup object that can be used in the main method to safely call the application's main entry point. More...
 
class  xtd::static_object
 Represent a static object. A static class can't be instantiated (constructors are deleted). More...
 
class  xtd::system_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::target_type
 Represents information about target type, such as the target identifier. This class cannot be inherited. More...
 
class  xtd::text::basic_string_builder< char_t, traits_t, allocator_t >
 Represents a mutable string of characters. This class cannot be inherited. More...
 
class  xtd::threading::abandoned_mutex_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::auto_reset_event
 Represents a thread synchronization event that, when signaled, resets automatically after releasing a single waiting thread. This class cannot be inherited. More...
 
class  xtd::threading::barrier
 Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases. More...
 
class  xtd::threading::barrier_post_phase_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::cancellation_token
 Propagates notification that operations should be canceled. More...
 
class  xtd::threading::cancellation_token_registration
 Propagates notification that operations should be canceled. More...
 
class  xtd::threading::cancellation_token_source
 Signals to a xtd::threading::cancellation_token that it should be canceled. More...
 
class  xtd::threading::countdown_event
 Represents a synchronization primitive that is signaled when its count reaches zero. More...
 
class  xtd::threading::event_wait_handle
 Represents a thread synchronization event. More...
 
class  xtd::threading::interlocked
 Provides atomic operations for variables that are shared by multiple threads. More...
 
class  xtd::threading::jthread
 Creates and controls an automatically rejoins on destruction thread, sets its priority, and gets its status. More...
 
class  xtd::threading::lock_guard
 Provides a mechanism that synchronizes access to objects with xtd::threading::monitor. More...
 
class  xtd::threading::lock_recursion_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::manual_reset_event
 Represents a thread synchronization event that, when signaled, must be reset manually. This class cannot be inherited. More...
 
class  xtd::threading::monitor
 Provides a mechanism that synchronizes access to objects. More...
 
class  xtd::threading::mutex
 A synchronization primitive that can also be used for interprocess synchronization. More...
 
class  xtd::threading::registered_wait_handle
 A synchronization primitive that can also be used for interprocess synchronization. More...
 
class  xtd::threading::semaphore
 Limits the number of threads that can access a resource or pool of resources concurrently. More...
 
class  xtd::threading::semaphore_full_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::threading::spin_lock
 Provides a mutual exclusion lock primitive where a thread trying to acquire the lock waits in a loop repeatedly checking until the lock becomes available. More...
 
class  xtd::threading::synchronization_lock_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::tasks::task_canceled_exception
 Represents an exception used to communicate task cancellation. More...
 
class  xtd::threading::thread
 Creates and controls a thread, sets its priority, and gets its status. More...
 
class  xtd::threading::thread_abort_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::threading::thread_interrupted_exception
 The exception that is thrown when a Thread is interrupted while it is in a waiting state. More...
 
class  xtd::threading::thread_local_object< value_t >
 Provides thread-local storage of data. More...
 
class  xtd::threading::thread_pool
 Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I/O, wait on behalf of other threads, and process timers. More...
 
class  xtd::threading::thread_state_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::timeout
 Contains a constant used to specify an infinite amount of time. This class cannot be inherited. More...
 
class  xtd::threading::timer
 Provides a mechanism for executing a method on a thread pool thread at specified intervals. This class cannot be inherited. More...
 
class  xtd::threading::wait_handle
 Encapsulates operating system specific objects that wait for exclusive access to shared resources. More...
 
class  xtd::threading::wait_handle_cannot_be_opened_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
struct  xtd::time_span
 Represents a time interval. More...
 
class  xtd::time_zone_info
 Represents any time zone in the world. More...
 
class  xtd::time_zone_info::transition_time
 Provides information about a specific time change, such as the change from daylight saving time to standard time or vice versa, in a particular time zone. More...
 
class  xtd::time_zone_info::adjustement_rule
 Provides information about a time zone adjustment, such as the transition to and from daylight saving time. More...
 
class  xtd::time_zone_not_found_exception
 The exception that is thrown when the time allotted for a process or operation has expired. More...
 
class  xtd::timeout_exception
 The exception that is thrown when the time allotted for a process or operation has expired. More...
 
class  xtd::timers::elapsed_event_args
 Provides data for the xtd::timers::timer::elapsed event. More...
 
class  xtd::timers::timer
 Generates an event after a set interval, with an option to generate recurring events. 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::type_object
 Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types. More...
 
class  xtd::unauthorized_access_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. 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::uri
 Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI. More...
 
class  xtd::uri_format_exception
 The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected. More...
 
class  xtd::uri_template_match_exception
 Represents an error when matching a Uri to a UriTemplateTable. 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.
 
#define overload_
 Helper keyword that use to determine one of const and non const overloaded methods.
 
#define const_overload_
 Helper keyword that use to determine one of const overloaded methods.
 
#define non_const_overload_
 Helper keyword that use to determine one of non const overloaded methods.
 

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.
 
using xtd::async_result = xtd::sptr< xtd::iasync_result >
 Represents the status of an asynchronous operation.
 
template<typename type_t >
using xtd::comparison = delegate< int32, type_t, type_t >
 Represents the method that compares two objects of the same type.
 
using xtd::const_object_ref = std::reference_wrapper< const object >
 Represents an object reference.
 
using xtd::async_callback = delegate< void(async_result ar)>
 References a method to be called when a corresponding asynchronous operation completes.
 
template<typename enum_t >
using xtd::enum_collection = std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > >
 Represents a pair of an enum_t value and a string of an enum of type enum_t.
 
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.
 
using xtd::object_ref = std::reference_wrapper< object >
 Represents an object reference.
 
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.
 
using xtd::threading::parameterized_thread_start = delegate< void(std::any)>
 Represents the method that executes on a xtd::threading::thread.
 
using xtd::threading::thread_start = delegate< void()>
 Represents the method that executes on a xtd::threading::thread.
 
using xtd::threading::timer_callback = action< std::any >
 Represents the method that handles calls from a xtd::threading::timer.
 
using xtd::threading::wait_callback = delegate< void(std::any)>
 Represents a callback method to be executed by a thread pool thread.
 
using xtd::threading::wait_or_timer_callback = delegate< void(std::any, bool)>
 Represents a method to be called when a xtd::threading::wait_handle is signaled or times out.
 

Enumerations

enum class  xtd::architecture_id {
  xtd::architecture_id::unknown ,
  xtd::architecture_id::x86 ,
  xtd::architecture_id::arm
}
 Identifies the processor architecture, supported by an assembly. More...
 
enum class  xtd::build_type {
  xtd::build_type::debug ,
  xtd::build_type::release
}
 Identifies the build type. More...
 
enum class  xtd::compiler_id {
  xtd::compiler_id::unknown ,
  xtd::compiler_id::msvc ,
  xtd::compiler_id::clang ,
  xtd::compiler_id::gcc ,
  xtd::compiler_id::apple_clang ,
  xtd::compiler_id::microsoft_visual_studio
}
 Identifies the compiler, supported by an assembly. More...
 
enum class  xtd::console_color {
  xtd::console_color::default_color ,
  xtd::console_color::black ,
  xtd::console_color::dark_blue ,
  xtd::console_color::dark_green ,
  xtd::console_color::dark_cyan ,
  xtd::console_color::dark_red ,
  xtd::console_color::dark_magenta ,
  xtd::console_color::dark_yellow ,
  xtd::console_color::gray ,
  xtd::console_color::dark_gray ,
  xtd::console_color::blue ,
  xtd::console_color::green ,
  xtd::console_color::cyan ,
  xtd::console_color::red ,
  xtd::console_color::magenta ,
  xtd::console_color::yellow ,
  xtd::console_color::white
}
 Specifies constants that define foreground and background colors for the console. More...
 
enum class  xtd::console_key {
  xtd::console_key::backspace ,
  xtd::console_key::tab ,
  xtd::console_key::clear ,
  xtd::console_key::enter ,
  xtd::console_key::pause ,
  xtd::console_key::caps_lock ,
  xtd::console_key::escape ,
  xtd::console_key::spacebar ,
  xtd::console_key::page_up ,
  xtd::console_key::page_down ,
  xtd::console_key::end ,
  xtd::console_key::home ,
  xtd::console_key::left_arrow ,
  xtd::console_key::up_arrow ,
  xtd::console_key::right_arrow ,
  xtd::console_key::down_arrow ,
  xtd::console_key::select ,
  xtd::console_key::print ,
  xtd::console_key::execute ,
  xtd::console_key::print_screen ,
  xtd::console_key::insert ,
  xtd::console_key::del ,
  xtd::console_key::help ,
  xtd::console_key::d0 ,
  xtd::console_key::d1 ,
  xtd::console_key::d2 ,
  xtd::console_key::d3 ,
  xtd::console_key::d4 ,
  xtd::console_key::d5 ,
  xtd::console_key::d6 ,
  xtd::console_key::d7 ,
  xtd::console_key::d8 ,
  xtd::console_key::d9 ,
  xtd::console_key::a ,
  xtd::console_key::b ,
  xtd::console_key::c ,
  xtd::console_key::d ,
  xtd::console_key::e ,
  xtd::console_key::f ,
  xtd::console_key::g ,
  xtd::console_key::h ,
  xtd::console_key::i ,
  xtd::console_key::j ,
  xtd::console_key::k ,
  xtd::console_key::l ,
  xtd::console_key::m ,
  xtd::console_key::n ,
  xtd::console_key::o ,
  xtd::console_key::p ,
  xtd::console_key::q ,
  xtd::console_key::r ,
  xtd::console_key::s ,
  xtd::console_key::t ,
  xtd::console_key::u ,
  xtd::console_key::v ,
  xtd::console_key::w ,
  xtd::console_key::x ,
  xtd::console_key::y ,
  xtd::console_key::z ,
  xtd::console_key::left_windows ,
  xtd::console_key::right_windows ,
  xtd::console_key::applications ,
  xtd::console_key::sleep ,
  xtd::console_key::num_pad_0 ,
  xtd::console_key::num_pad_1 ,
  xtd::console_key::num_pad_2 ,
  xtd::console_key::num_pad_3 ,
  xtd::console_key::num_pad_4 ,
  xtd::console_key::num_pad_5 ,
  xtd::console_key::num_pad_6 ,
  xtd::console_key::num_pad_7 ,
  xtd::console_key::num_pad_8 ,
  xtd::console_key::num_pad_9 ,
  xtd::console_key::multiply ,
  xtd::console_key::add ,
  xtd::console_key::separator ,
  xtd::console_key::subtract ,
  xtd::console_key::decimal ,
  xtd::console_key::divide ,
  xtd::console_key::f1 ,
  xtd::console_key::f2 ,
  xtd::console_key::f3 ,
  xtd::console_key::f4 ,
  xtd::console_key::f5 ,
  xtd::console_key::f6 ,
  xtd::console_key::f7 ,
  xtd::console_key::f8 ,
  xtd::console_key::f9 ,
  xtd::console_key::f10 ,
  xtd::console_key::f11 ,
  xtd::console_key::f12 ,
  xtd::console_key::f13 ,
  xtd::console_key::f14 ,
  xtd::console_key::f15 ,
  xtd::console_key::f16 ,
  xtd::console_key::f17 ,
  xtd::console_key::f18 ,
  xtd::console_key::f19 ,
  xtd::console_key::f20 ,
  xtd::console_key::f21 ,
  xtd::console_key::f22 ,
  xtd::console_key::f23 ,
  xtd::console_key::f24 ,
  xtd::console_key::browser_back ,
  xtd::console_key::browser_forward ,
  xtd::console_key::browser_refresh ,
  xtd::console_key::browser_stop ,
  xtd::console_key::browser_search ,
  xtd::console_key::browser_favorites ,
  xtd::console_key::browser_home ,
  xtd::console_key::volume_mute ,
  xtd::console_key::volume_down ,
  xtd::console_key::volume_up ,
  xtd::console_key::media_next ,
  xtd::console_key::media_previous ,
  xtd::console_key::media_stop ,
  xtd::console_key::media_play ,
  xtd::console_key::launch_mail ,
  xtd::console_key::launch_media_select ,
  xtd::console_key::launch_app1 ,
  xtd::console_key::launch_app2 ,
  xtd::console_key::oem1 ,
  xtd::console_key::oem_plus ,
  xtd::console_key::oem_comma ,
  xtd::console_key::oem_minus ,
  xtd::console_key::oem_period ,
  xtd::console_key::oem2 ,
  xtd::console_key::oem3 ,
  xtd::console_key::oem4 ,
  xtd::console_key::oem5 ,
  xtd::console_key::oem6 ,
  xtd::console_key::oem7 ,
  xtd::console_key::oem8 ,
  xtd::console_key::oem102 ,
  xtd::console_key::process ,
  xtd::console_key::packet ,
  xtd::console_key::attention ,
  xtd::console_key::cr_sel ,
  xtd::console_key::ex_sel ,
  xtd::console_key::erase_end_of_file ,
  xtd::console_key::play ,
  xtd::console_key::zoom ,
  xtd::console_key::no_name ,
  xtd::console_key::pa1 ,
  xtd::console_key::oem_clear
}
 Specifies the standard keys on a console. More...
 
enum class  xtd::console_modifiers {
  xtd::console_modifiers::none ,
  xtd::console_modifiers::alt ,
  xtd::console_modifiers::shift ,
  xtd::console_modifiers::control
}
 Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard. More...
 
enum class  xtd::console_special_key {
  xtd::console_special_key::control_break ,
  xtd::console_special_key::control_c ,
  xtd::console_special_key::control_backslash ,
  xtd::console_special_key::control_z
}
 Specifies combinations of modifier and console keys that can interrupt the current process. More...
 
enum class  xtd::date_time_kind {
  xtd::date_time_kind::unspecified ,
  xtd::date_time_kind::utc ,
  xtd::date_time_kind::local
}
 Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC. More...
 
enum class  xtd::day_of_week {
  xtd::day_of_week::sunday ,
  xtd::day_of_week::monday ,
  xtd::day_of_week::tuesday ,
  xtd::day_of_week::wednesday ,
  xtd::day_of_week::thursday ,
  xtd::day_of_week::friday ,
  xtd::day_of_week::saturday
}
 Specifies the day of the week. More...
 
enum class  xtd::diagnostics::assert_dialog_result {
  xtd::diagnostics::assert_dialog_result::abort ,
  xtd::diagnostics::assert_dialog_result::retry ,
  xtd::diagnostics::assert_dialog_result::ignore
}
 Specifies identifiers to indicate the return value of an assert dialog box. More...
 
enum class  xtd::diagnostics::process_priority_class {
  xtd::diagnostics::process_priority_class::normal ,
  xtd::diagnostics::process_priority_class::idle ,
  xtd::diagnostics::process_priority_class::high ,
  xtd::diagnostics::process_priority_class::real_time ,
  xtd::diagnostics::process_priority_class::below_normal ,
  xtd::diagnostics::process_priority_class::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::process_window_style::normal ,
  xtd::diagnostics::process_window_style::hidden ,
  xtd::diagnostics::process_window_style::minimized ,
  xtd::diagnostics::process_window_style::maximized
}
 Specified how a new window should appear when the system starts a process. More...
 
enum class  xtd::diagnostics::source_levels {
  xtd::diagnostics::source_levels::off ,
  xtd::diagnostics::source_levels::critical ,
  xtd::diagnostics::source_levels::error ,
  xtd::diagnostics::source_levels::warning ,
  xtd::diagnostics::source_levels::information ,
  xtd::diagnostics::source_levels::verbose ,
  xtd::diagnostics::source_levels::activity_tracing ,
  xtd::diagnostics::source_levels::all
}
 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::diagnostics::trace_event_type {
  xtd::diagnostics::trace_event_type::critical ,
  xtd::diagnostics::trace_event_type::error ,
  xtd::diagnostics::trace_event_type::warning ,
  xtd::diagnostics::trace_event_type::information ,
  xtd::diagnostics::trace_event_type::verbose ,
  xtd::diagnostics::trace_event_type::start ,
  xtd::diagnostics::trace_event_type::stop ,
  xtd::diagnostics::trace_event_type::suspend ,
  xtd::diagnostics::trace_event_type::resume ,
  xtd::diagnostics::trace_event_type::transfer
}
 Identifies the type of event that has caused the trace. More...
 
enum class  xtd::diagnostics::trace_level {
  xtd::diagnostics::trace_level::off ,
  xtd::diagnostics::trace_level::error ,
  xtd::diagnostics::trace_level::warning ,
  xtd::diagnostics::trace_level::info ,
  xtd::diagnostics::trace_level::verbose
}
 Specifies what messages to output for the debug, trace and trace_switch classes. More...
 
enum class  xtd::enum_attribute {
  xtd::enum_attribute::standard ,
  xtd::enum_attribute::flags
}
 Specifies the enum attribute. More...
 
enum class  xtd::environment_variable_target {
  xtd::environment_variable_target::process ,
  xtd::environment_variable_target::user ,
  xtd::environment_variable_target::machine
}
 Specifies the location where an environment variable is stored or retrieved in a set or get operation. More...
 
enum class  xtd::exit_mode {
  xtd::exit_mode::normal ,
  xtd::exit_mode::quick
}
 Specifies exit mode for the xtd::environment::program_exit event. More...
 
enum class  xtd::exit_status {
  xtd::exit_status::success ,
  xtd::exit_status::failure
}
 Specifies exit status for the xtd::environment::exit method. More...
 
enum class  xtd::io::file_access {
  xtd::io::file_access::read ,
  xtd::io::file_access::write ,
  xtd::io::file_access::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::file_attributes::read_only ,
  xtd::io::file_attributes::hidden ,
  xtd::io::file_attributes::system ,
  xtd::io::file_attributes::directory ,
  xtd::io::file_attributes::archive ,
  xtd::io::file_attributes::device ,
  xtd::io::file_attributes::normal ,
  xtd::io::file_attributes::temporary ,
  xtd::io::file_attributes::sparse_file ,
  xtd::io::file_attributes::reparse_point ,
  xtd::io::file_attributes::compressed ,
  xtd::io::file_attributes::offline ,
  xtd::io::file_attributes::not_content_indexed ,
  xtd::io::file_attributes::encrypted
}
 Provides attributes for files and directories. More...
 
enum class  xtd::io::file_permissions {
  xtd::io::file_permissions::none ,
  xtd::io::file_permissions::owner_read ,
  xtd::io::file_permissions::owner_write ,
  xtd::io::file_permissions::owner_execute ,
  xtd::io::file_permissions::owner_all ,
  xtd::io::file_permissions::group_read ,
  xtd::io::file_permissions::group_write ,
  xtd::io::file_permissions::group_execute ,
  xtd::io::file_permissions::group_all ,
  xtd::io::file_permissions::others_read ,
  xtd::io::file_permissions::others_write ,
  xtd::io::file_permissions::others_execute ,
  xtd::io::file_permissions::others_all ,
  xtd::io::file_permissions::all ,
  xtd::io::file_permissions::set_uid ,
  xtd::io::file_permissions::set_gid ,
  xtd::io::file_permissions::sticky_bit ,
  xtd::io::file_permissions::mask ,
  xtd::io::file_permissions::unknown
}
 Provides permissions for files and directories. More...
 
enum class  xtd::io::search_option {
  xtd::io::search_option::top_directory_only ,
  xtd::io::search_option::all_directories
}
 Specifies whether to search the current directory, or the current directory and all subdirectories. More...
 
enum class  xtd::language_id {
  xtd::language_id::unknown ,
  xtd::language_id::cpp_pre98 ,
  xtd::language_id::cpp98 ,
  xtd::language_id::cpp11 ,
  xtd::language_id::cpp14 ,
  xtd::language_id::cpp17 ,
  xtd::language_id::cpp20 ,
  xtd::language_id::cpp23 ,
  xtd::language_id::cpp26 ,
  xtd::language_id::cpp29
}
 Identifies the c++ language used by assembly. More...
 
enum class  xtd::month_of_year {
  xtd::month_of_year::january ,
  xtd::month_of_year::february ,
  xtd::month_of_year::march ,
  xtd::month_of_year::april ,
  xtd::month_of_year::may ,
  xtd::month_of_year::june ,
  xtd::month_of_year::july ,
  xtd::month_of_year::august ,
  xtd::month_of_year::september ,
  xtd::month_of_year::october ,
  xtd::month_of_year::november ,
  xtd::month_of_year::december
}
 Specifies the month of the year. More...
 
enum class  xtd::net::sockets::address_family {
  xtd::net::sockets::address_family::unknown ,
  xtd::net::sockets::address_family::unspecified ,
  xtd::net::sockets::address_family::unix ,
  xtd::net::sockets::address_family::inter_network ,
  xtd::net::sockets::address_family::imp_link ,
  xtd::net::sockets::address_family::pup ,
  xtd::net::sockets::address_family::chaos ,
  xtd::net::sockets::address_family::ns ,
  xtd::net::sockets::address_family::ipx ,
  xtd::net::sockets::address_family::iso ,
  xtd::net::sockets::address_family::osi ,
  xtd::net::sockets::address_family::ecma ,
  xtd::net::sockets::address_family::data_kit ,
  xtd::net::sockets::address_family::ccitt ,
  xtd::net::sockets::address_family::sna ,
  xtd::net::sockets::address_family::dec_net ,
  xtd::net::sockets::address_family::data_link ,
  xtd::net::sockets::address_family::lat ,
  xtd::net::sockets::address_family::hyper_channel ,
  xtd::net::sockets::address_family::apple_talk ,
  xtd::net::sockets::address_family::net_bios ,
  xtd::net::sockets::address_family::voice_view ,
  xtd::net::sockets::address_family::fire_fox ,
  xtd::net::sockets::address_family::banyan ,
  xtd::net::sockets::address_family::atm ,
  xtd::net::sockets::address_family::inter_network_v6 ,
  xtd::net::sockets::address_family::cluster ,
  xtd::net::sockets::address_family::ieee12844 ,
  xtd::net::sockets::address_family::irda ,
  xtd::net::sockets::address_family::network_designers ,
  xtd::net::sockets::address_family::max
}
 Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use. More...
 
enum class  xtd::net::sockets::io_control_code : uint64 {
  xtd::net::sockets::io_control_code::enable_circular_queuing ,
  xtd::net::sockets::io_control_code::flush ,
  xtd::net::sockets::io_control_code::address_list_change ,
  xtd::net::sockets::io_control_code::data_to_read ,
  xtd::net::sockets::io_control_code::oob_data_read ,
  xtd::net::sockets::io_control_code::get_broadcast_address ,
  xtd::net::sockets::io_control_code::address_list_query ,
  xtd::net::sockets::io_control_code::query_target_pnp_handle ,
  xtd::net::sockets::io_control_code::async_io ,
  xtd::net::sockets::io_control_code::non_blocking_io ,
  xtd::net::sockets::io_control_code::associate_handle ,
  xtd::net::sockets::io_control_code::multipoint_loopback ,
  xtd::net::sockets::io_control_code::multicast_scope ,
  xtd::net::sockets::io_control_code::set_qos ,
  xtd::net::sockets::io_control_code::set_group_qos ,
  xtd::net::sockets::io_control_code::routing_interface_change ,
  xtd::net::sockets::io_control_code::namespace_change ,
  xtd::net::sockets::io_control_code::receive_all ,
  xtd::net::sockets::io_control_code::receive_all_multicast ,
  xtd::net::sockets::io_control_code::receive_all_igmp_multicast ,
  xtd::net::sockets::io_control_code::keep_alive_values ,
  xtd::net::sockets::io_control_code::absorb_router_alert ,
  xtd::net::sockets::io_control_code::unicast_interface ,
  xtd::net::sockets::io_control_code::limit_broadcasts ,
  xtd::net::sockets::io_control_code::bind_to_interface ,
  xtd::net::sockets::io_control_code::multicast_interface ,
  xtd::net::sockets::io_control_code::add_multicast_group_on_interface ,
  xtd::net::sockets::io_control_code::delete_multicast_group_from_interface ,
  xtd::net::sockets::io_control_code::get_extension_function_pointer ,
  xtd::net::sockets::io_control_code::get_qos ,
  xtd::net::sockets::io_control_code::get_group_qos ,
  xtd::net::sockets::io_control_code::translate_handle ,
  xtd::net::sockets::io_control_code::routing_interface_query ,
  xtd::net::sockets::io_control_code::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::ip_protection_level::unspecified ,
  xtd::net::sockets::ip_protection_level::unrestricted ,
  xtd::net::sockets::ip_protection_level::edge_restricted ,
  xtd::net::sockets::ip_protection_level::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::net::sockets::protocol_family {
  xtd::net::sockets::protocol_family::unknown ,
  xtd::net::sockets::protocol_family::unspecified ,
  xtd::net::sockets::protocol_family::unix ,
  xtd::net::sockets::protocol_family::inter_network ,
  xtd::net::sockets::protocol_family::imp_link ,
  xtd::net::sockets::protocol_family::pup ,
  xtd::net::sockets::protocol_family::chaos ,
  xtd::net::sockets::protocol_family::ns ,
  xtd::net::sockets::protocol_family::ipx ,
  xtd::net::sockets::protocol_family::iso ,
  xtd::net::sockets::protocol_family::osi ,
  xtd::net::sockets::protocol_family::ecma ,
  xtd::net::sockets::protocol_family::data_kit ,
  xtd::net::sockets::protocol_family::ccitt ,
  xtd::net::sockets::protocol_family::sna ,
  xtd::net::sockets::protocol_family::dec_net ,
  xtd::net::sockets::protocol_family::data_link ,
  xtd::net::sockets::protocol_family::lat ,
  xtd::net::sockets::protocol_family::hyper_channel ,
  xtd::net::sockets::protocol_family::apple_talk ,
  xtd::net::sockets::protocol_family::net_bios ,
  xtd::net::sockets::protocol_family::voice_view ,
  xtd::net::sockets::protocol_family::fire_fox ,
  xtd::net::sockets::protocol_family::banyan ,
  xtd::net::sockets::protocol_family::atm ,
  xtd::net::sockets::protocol_family::inter_network_v6 ,
  xtd::net::sockets::protocol_family::cluster ,
  xtd::net::sockets::protocol_family::ieee12844 ,
  xtd::net::sockets::protocol_family::irda ,
  xtd::net::sockets::protocol_family::network_designers ,
  xtd::net::sockets::protocol_family::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::protocol_type::unknown ,
  xtd::net::sockets::protocol_type::ip_v6_hop_by_hop_options ,
  xtd::net::sockets::protocol_type::unspecified ,
  xtd::net::sockets::protocol_type::ip ,
  xtd::net::sockets::protocol_type::icmp ,
  xtd::net::sockets::protocol_type::igmp ,
  xtd::net::sockets::protocol_type::ggp ,
  xtd::net::sockets::protocol_type::ip_v4 ,
  xtd::net::sockets::protocol_type::tcp ,
  xtd::net::sockets::protocol_type::pup ,
  xtd::net::sockets::protocol_type::udp ,
  xtd::net::sockets::protocol_type::idp ,
  xtd::net::sockets::protocol_type::ip_v6 ,
  xtd::net::sockets::protocol_type::ip_v6_routing_header ,
  xtd::net::sockets::protocol_type::ip_v6_fragment_header ,
  xtd::net::sockets::protocol_type::ip_sec_encapsulating_security_payload ,
  xtd::net::sockets::protocol_type::ip_sec_authentication_header ,
  xtd::net::sockets::protocol_type::icmp_v6 ,
  xtd::net::sockets::protocol_type::ip_v6_no_next_header ,
  xtd::net::sockets::protocol_type::ip_v6_destination_options ,
  xtd::net::sockets::protocol_type::nd ,
  xtd::net::sockets::protocol_type::raw ,
  xtd::net::sockets::protocol_type::ipx ,
  xtd::net::sockets::protocol_type::spx ,
  xtd::net::sockets::protocol_type::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_mode::select_read ,
  xtd::net::sockets::select_mode::select_write ,
  xtd::net::sockets::select_mode::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::socket_async_operation::none ,
  xtd::net::sockets::socket_async_operation::accept ,
  xtd::net::sockets::socket_async_operation::connect ,
  xtd::net::sockets::socket_async_operation::disconnect ,
  xtd::net::sockets::socket_async_operation::receive ,
  xtd::net::sockets::socket_async_operation::receive_from ,
  xtd::net::sockets::socket_async_operation::receive_message_from ,
  xtd::net::sockets::socket_async_operation::send ,
  xtd::net::sockets::socket_async_operation::send_packets ,
  xtd::net::sockets::socket_async_operation::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::socket_error::sock_error ,
  xtd::net::sockets::socket_error::success ,
  xtd::net::sockets::socket_error::operation_aborted ,
  xtd::net::sockets::socket_error::io_pending ,
  xtd::net::sockets::socket_error::interrupted ,
  xtd::net::sockets::socket_error::access_denied ,
  xtd::net::sockets::socket_error::fault ,
  xtd::net::sockets::socket_error::invalid_argument ,
  xtd::net::sockets::socket_error::too_many_open_sockets ,
  xtd::net::sockets::socket_error::would_block ,
  xtd::net::sockets::socket_error::in_progress ,
  xtd::net::sockets::socket_error::already_in_progress ,
  xtd::net::sockets::socket_error::not_socket ,
  xtd::net::sockets::socket_error::destination_address_required ,
  xtd::net::sockets::socket_error::message_size ,
  xtd::net::sockets::socket_error::protocol_type ,
  xtd::net::sockets::socket_error::protocol_option ,
  xtd::net::sockets::socket_error::protocol_not_supported ,
  xtd::net::sockets::socket_error::socket_not_supported ,
  xtd::net::sockets::socket_error::operation_not_supported ,
  xtd::net::sockets::socket_error::protocol_family_not_supported ,
  xtd::net::sockets::socket_error::address_family_not_supported ,
  xtd::net::sockets::socket_error::address_already_in_use ,
  xtd::net::sockets::socket_error::address_not_available ,
  xtd::net::sockets::socket_error::network_down ,
  xtd::net::sockets::socket_error::network_unreachable ,
  xtd::net::sockets::socket_error::network_reset ,
  xtd::net::sockets::socket_error::connection_aborted ,
  xtd::net::sockets::socket_error::connection_reset ,
  xtd::net::sockets::socket_error::no_buffer_space_available ,
  xtd::net::sockets::socket_error::is_connected ,
  xtd::net::sockets::socket_error::not_connected ,
  xtd::net::sockets::socket_error::shutdown ,
  xtd::net::sockets::socket_error::timed_out ,
  xtd::net::sockets::socket_error::connection_refused ,
  xtd::net::sockets::socket_error::host_down ,
  xtd::net::sockets::socket_error::host_unreachable ,
  xtd::net::sockets::socket_error::process_limit ,
  xtd::net::sockets::socket_error::system_not_ready ,
  xtd::net::sockets::socket_error::version_not_supported ,
  xtd::net::sockets::socket_error::not_initialized ,
  xtd::net::sockets::socket_error::disconnecting ,
  xtd::net::sockets::socket_error::type_not_found ,
  xtd::net::sockets::socket_error::host_not_found ,
  xtd::net::sockets::socket_error::try_again ,
  xtd::net::sockets::socket_error::no_recovery ,
  xtd::net::sockets::socket_error::no_data
}
 Defines error codes for the xtd::net::sockets::socket class. More...
 
enum class  xtd::net::sockets::socket_flags {
  xtd::net::sockets::socket_flags::none ,
  xtd::net::sockets::socket_flags::out_of_band ,
  xtd::net::sockets::socket_flags::peek ,
  xtd::net::sockets::socket_flags::dont_route ,
  xtd::net::sockets::socket_flags::max_io_vector_length ,
  xtd::net::sockets::socket_flags::truncated ,
  xtd::net::sockets::socket_flags::control_data_truncated ,
  xtd::net::sockets::socket_flags::broadcast ,
  xtd::net::sockets::socket_flags::multicast ,
  xtd::net::sockets::socket_flags::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::socket_information_options::none ,
  xtd::net::sockets::socket_information_options::non_blocking ,
  xtd::net::sockets::socket_information_options::connected ,
  xtd::net::sockets::socket_information_options::listening ,
  xtd::net::sockets::socket_information_options::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_option_level::socket ,
  xtd::net::sockets::socket_option_level::ip ,
  xtd::net::sockets::socket_option_level::ip_v6 ,
  xtd::net::sockets::socket_option_level::tcp ,
  xtd::net::sockets::socket_option_level::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::socket_option_name::debug ,
  xtd::net::sockets::socket_option_name::accept_connection ,
  xtd::net::sockets::socket_option_name::reuse_address ,
  xtd::net::sockets::socket_option_name::keep_alive ,
  xtd::net::sockets::socket_option_name::dont_route ,
  xtd::net::sockets::socket_option_name::broadcast ,
  xtd::net::sockets::socket_option_name::use_loopback ,
  xtd::net::sockets::socket_option_name::linger ,
  xtd::net::sockets::socket_option_name::out_of_band_inline ,
  xtd::net::sockets::socket_option_name::dont_linger ,
  xtd::net::sockets::socket_option_name::exclusive_address_use ,
  xtd::net::sockets::socket_option_name::send_buffer ,
  xtd::net::sockets::socket_option_name::receive_buffer ,
  xtd::net::sockets::socket_option_name::send_low_water ,
  xtd::net::sockets::socket_option_name::receive_low_water ,
  xtd::net::sockets::socket_option_name::send_timeout ,
  xtd::net::sockets::socket_option_name::receive_timeout ,
  xtd::net::sockets::socket_option_name::error ,
  xtd::net::sockets::socket_option_name::type ,
  xtd::net::sockets::socket_option_name::max_connections ,
  xtd::net::sockets::socket_option_name::ip_options ,
  xtd::net::sockets::socket_option_name::header_included ,
  xtd::net::sockets::socket_option_name::type_of_service ,
  xtd::net::sockets::socket_option_name::ip_time_to_live ,
  xtd::net::sockets::socket_option_name::multicast_interface ,
  xtd::net::sockets::socket_option_name::multicast_time_to_live ,
  xtd::net::sockets::socket_option_name::multicast_loopback ,
  xtd::net::sockets::socket_option_name::add_membership ,
  xtd::net::sockets::socket_option_name::drop_membership ,
  xtd::net::sockets::socket_option_name::dont_fragment ,
  xtd::net::sockets::socket_option_name::add_source_membership ,
  xtd::net::sockets::socket_option_name::drop_source_membership ,
  xtd::net::sockets::socket_option_name::block_source ,
  xtd::net::sockets::socket_option_name::unblock_source ,
  xtd::net::sockets::socket_option_name::packet_information ,
  xtd::net::sockets::socket_option_name::hop_limit ,
  xtd::net::sockets::socket_option_name::ip_protection_level ,
  xtd::net::sockets::socket_option_name::ip_v6_only ,
  xtd::net::sockets::socket_option_name::no_delay ,
  xtd::net::sockets::socket_option_name::bsd_urgent ,
  xtd::net::sockets::socket_option_name::expedited ,
  xtd::net::sockets::socket_option_name::no_checksum ,
  xtd::net::sockets::socket_option_name::checksum_coverage ,
  xtd::net::sockets::socket_option_name::update_accept_context ,
  xtd::net::sockets::socket_option_name::update_connect_context
}
 Defines configuration option names. More...
 
enum class  xtd::net::sockets::socket_shutdown {
  xtd::net::sockets::socket_shutdown::receive ,
  xtd::net::sockets::socket_shutdown::send ,
  xtd::net::sockets::socket_shutdown::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::socket_type::unknown ,
  xtd::net::sockets::socket_type::stream ,
  xtd::net::sockets::socket_type::dgram ,
  xtd::net::sockets::socket_type::raw ,
  xtd::net::sockets::socket_type::rdm ,
  xtd::net::sockets::socket_type::seqpacket
}
 Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents. More...
 
enum class  xtd::net::sockets::transmit_file_options {
  xtd::net::sockets::transmit_file_options::use_default_worker_thread ,
  xtd::net::sockets::transmit_file_options::disconnect ,
  xtd::net::sockets::transmit_file_options::reuse_socket ,
  xtd::net::sockets::transmit_file_options::write_behind ,
  xtd::net::sockets::transmit_file_options::use_system_thread ,
  xtd::net::sockets::transmit_file_options::use_kernel_apc
}
 The TransmitFileOptions enumeration defines values used in file transfer requests. More...
 
enum class  xtd::number_styles {
  xtd::number_styles::none ,
  xtd::number_styles::allow_leading_white ,
  xtd::number_styles::allow_trailing_white ,
  xtd::number_styles::allow_leading_sign ,
  xtd::number_styles::allow_trailing_sign ,
  xtd::number_styles::allow_parentheses ,
  xtd::number_styles::allow_decimal_point ,
  xtd::number_styles::allow_thousands ,
  xtd::number_styles::allow_exponent ,
  xtd::number_styles::allow_currency_symbol ,
  xtd::number_styles::allow_hex_specifier ,
  xtd::number_styles::allow_binary_specifier ,
  xtd::number_styles::allow_octal_specifier ,
  xtd::number_styles::integer ,
  xtd::number_styles::number ,
  xtd::number_styles::fixed_point ,
  xtd::number_styles::currency ,
  xtd::number_styles::any ,
  xtd::number_styles::hex_number ,
  xtd::number_styles::binary_number ,
  xtd::number_styles::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::platform_id::unknown ,
  xtd::platform_id::win32s ,
  xtd::platform_id::win32_windows ,
  xtd::platform_id::win32_nt ,
  xtd::platform_id::win_ce ,
  xtd::platform_id::unix ,
  xtd::platform_id::xbox ,
  xtd::platform_id::macos ,
  xtd::platform_id::ios ,
  xtd::platform_id::android ,
  xtd::platform_id::linux ,
  xtd::platform_id::tvos ,
  xtd::platform_id::watchos ,
  xtd::platform_id::free_bsd ,
  xtd::platform_id::mingw ,
  xtd::platform_id::msys ,
  xtd::platform_id::posix ,
  xtd::platform_id::other
}
 Identifies the operating system, or platform, supported by an assembly. More...
 
enum class  xtd::signal {
  xtd::signal::abnormal_termination ,
  xtd::signal::floating_point_exception ,
  xtd::signal::illegal_instruction ,
  xtd::signal::interrupt ,
  xtd::signal::segmentation_violation ,
  xtd::signal::software_termination
}
 Specifies signals that can interrupt the current process. More...
 
enum class  xtd::speech::synthesis::synthesizer_state {
  xtd::speech::synthesis::synthesizer_state::ready ,
  xtd::speech::synthesis::synthesizer_state::speaking ,
  xtd::speech::synthesis::synthesizer_state::pause
}
 Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer. More...
 
enum class  xtd::string_comparison {
  xtd::string_comparison::ordinal ,
  xtd::string_comparison::ordinal_ignore_case
}
 Specifies the culture, case, and sort rules to be used by certain overloads of the xtd::string::compare method. More...
 
enum class  xtd::string_split_options {
  xtd::string_split_options::none ,
  xtd::string_split_options::remove_empty_entries
}
 Specifies whether applicable xtd::string::split method overloads include or omit empty substrings from the return value. More...
 
enum class  xtd::target_id {
  xtd::target_id::unknown ,
  xtd::target_id::console_application ,
  xtd::target_id::gui_application ,
  xtd::target_id::test_application ,
  xtd::target_id::interface_library ,
  xtd::target_id::module_library ,
  xtd::target_id::shared_library ,
  xtd::target_id::static_library ,
  xtd::target_id::custom_target
}
 Identifies the target, supported by an assembly. More...
 
enum class  xtd::uri_components {
  xtd::uri_components::none ,
  xtd::uri_components::scheme ,
  xtd::uri_components::user_info ,
  xtd::uri_components::host ,
  xtd::uri_components::port ,
  xtd::uri_components::path ,
  xtd::uri_components::query ,
  xtd::uri_components::fragment ,
  xtd::uri_components::strong_port ,
  xtd::uri_components::keep_delimiter ,
  xtd::uri_components::host_and_port ,
  xtd::uri_components::strong_authority ,
  xtd::uri_components::absolute_uri ,
  xtd::uri_components::path_and_query ,
  xtd::uri_components::http_request_url ,
  xtd::uri_components::scheme_and_server ,
  xtd::uri_components::serialization_info_string
}
 This enumeration has a Flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::uri_format {
  xtd::uri_format::safe_unescaped ,
  xtd::uri_format::unescaped ,
  xtd::uri_format::uri_escaped
}
 Controls how URI information is escaped. More...
 
enum class  xtd::uri_host_name_type {
  xtd::uri_host_name_type::unknown ,
  xtd::uri_host_name_type::basic ,
  xtd::uri_host_name_type::dns ,
  xtd::uri_host_name_type::ip_v4 ,
  xtd::uri_host_name_type::ip_v6
}
 Defines host name types for the xtd::uri::check_host_name method. More...
 
enum class  xtd::uri_kind {
  xtd::uri_kind::relative_or_absolute ,
  xtd::uri_kind::absolute ,
  xtd::uri_kind::relative
}
 Defines the kinds of Uris for the xtd::uri::is_well_formed_uri_string and several xtd::uri methods. More...
 
enum class  xtd::uri_partial {
  xtd::uri_partial::scheme ,
  xtd::uri_partial::authority ,
  xtd::uri_partial::path ,
  xtd::uri_partial::query
}
 Defines the parts of a URI for the xtd::uri::get_left_part method. More...
 

Functions

std::ostream xtd::cnull (nullptr)
 Provides a null std::ostream.
 
template<typename type_t >
void xtd::delete_ptr (sptr< type_t > &ptr)
 xtd::delete_ptr operator delete a xtd::sptr or xtd::ptr object.
 
template<typename type_t >
void xtd::delete_ptr (uptr< type_t > &ptr)
 xtd::delete_ptr operator delete a xtd::uptr object.
 
template<typename type_t >
void xtd::delete_sptr (sptr< type_t > &ptr)
 xtd::delete_sptr operator delete a xtd::sptr or xtd::ptr object.
 
template<typename type_t >
void xtd::delete_uptr (uptr< type_t > &ptr)
 xtd::delete_uptr operator delete a xtd::uptr object.
 
template<typename type_t >
type_t xtd::as (any_object &o)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (std::any value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (bool value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (xtd::byte value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char8 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char16 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char32 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (wchar value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (decimal value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (double value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (float value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (int16 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (int32 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (int64 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (slong value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (sbyte value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (uint16 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (uint32 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (uint64 value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (xtd::ulong value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const xtd::string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (xtd::string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const std::string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (std::string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const std::u8string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (std::u8string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const std::u16string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (std::u16string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const std::u32string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (std::u32string &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const std::wstring &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (std::wstring &value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const char *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const char8 *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char8 *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const char16 *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char16 *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const char32 *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (char32 *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (const wchar *value)
 Casts a type into another type.
 
template<>
bool xtd::as< bool > (wchar *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (std::any value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (bool value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (xtd::byte value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char8 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char16 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char32 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (wchar value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (decimal value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (double value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (float value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (int16 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (int32 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (int64 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (slong value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (sbyte value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (uint16 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (uint32 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (uint64 value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (xtd::ulong value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const xtd::string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (xtd::string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (std::string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::u8string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (std::u8string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::u16string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (std::u16string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::u32string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (std::u32string &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::wstring &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (std::wstring &value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const char *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const char8 *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char8 *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const char16 *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char16 *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const char32 *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (char32 *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (const wchar *value)
 Casts a type into another type.
 
template<>
xtd::byte xtd::as< xtd::byte > (wchar *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (std::any value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (bool value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (xtd::byte value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char8 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char16 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char32 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (wchar value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (decimal value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (double value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (float value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (int16 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (int32 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (int64 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (slong value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (sbyte value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (uint16 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (uint32 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (uint64 value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (xtd::ulong value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const xtd::string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (xtd::string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const std::string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (std::string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const std::u8string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (std::u8string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const std::u16string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (std::u16string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const std::u32string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (std::u32string &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const std::wstring &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (std::wstring &value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const char *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const char8 *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char8 *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const char16 *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char16 *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const char32 *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (char32 *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (const wchar *value)
 Casts a type into another type.
 
template<>
char xtd::as< char > (wchar *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (std::any value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (bool value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (xtd::byte value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char8 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char16 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char32 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (wchar value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (decimal value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (double value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (float value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (int16 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (int32 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (int64 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (slong value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (sbyte value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (uint16 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (uint32 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (uint64 value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (xtd::string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const std::string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (std::string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (std::u8string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (std::u16string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (std::u32string &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (std::wstring &value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const char *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const char8 *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char8 *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const char16 *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char16 *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const char32 *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (char32 *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (const wchar *value)
 Casts a type into another type.
 
template<>
char16 xtd::as< char16 > (wchar *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (std::any value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (bool value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (xtd::byte value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char8 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char16 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char32 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (wchar value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (decimal value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (double value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (float value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (int16 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (int32 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (int64 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (slong value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (sbyte value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (uint16 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (uint32 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (uint64 value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (xtd::string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const std::string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (std::string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (std::u8string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (std::u16string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (std::u32string &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (std::wstring &value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const char *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const char8 *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char8 *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const char16 *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char16 *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const char32 *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (char32 *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (const wchar *value)
 Casts a type into another type.
 
template<>
char32 xtd::as< char32 > (wchar *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (std::any value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (bool value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (xtd::byte value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char8 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char16 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char32 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (wchar value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (decimal value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (double value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (float value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (int16 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (int32 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (int64 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (slong value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (sbyte value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (uint16 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (uint32 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (uint64 value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (xtd::string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const std::string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (std::string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (std::u8string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (std::u16string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (std::u32string &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (std::wstring &value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const char *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const char8 *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char8 *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const char16 *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char16 *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const char32 *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (char32 *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (const wchar *value)
 Casts a type into another type.
 
template<>
char8 xtd::as< char8 > (wchar *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (std::any value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (bool value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (xtd::byte value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char8 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char16 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char32 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (wchar value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (decimal value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (double value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (float value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (int16 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (int32 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (int64 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (slong value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (sbyte value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (uint16 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (uint32 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (uint64 value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (xtd::ulong value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const xtd::string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (xtd::string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const std::string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (std::string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const std::u8string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (std::u8string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const std::u16string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (std::u16string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const std::u32string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (std::u32string &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const std::wstring &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (std::wstring &value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const char *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const char8 *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char8 *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const char16 *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char16 *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const char32 *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (char32 *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (const wchar *value)
 Casts a type into another type.
 
template<>
decimal xtd::as< decimal > (wchar *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (std::any value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (bool value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (xtd::byte value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char8 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char16 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char32 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (wchar value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (decimal value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (double value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (float value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (int16 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (int32 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (int64 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (slong value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (sbyte value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (uint16 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (uint32 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (uint64 value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (xtd::ulong value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const xtd::string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (xtd::string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const std::string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (std::string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const std::u8string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (std::u8string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const std::u16string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (std::u16string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const std::u32string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (std::u32string &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const std::wstring &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (std::wstring &value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const char *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const char8 *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char8 *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const char16 *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char16 *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const char32 *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (char32 *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (const wchar *value)
 Casts a type into another type.
 
template<>
double xtd::as< double > (wchar *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (std::any value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (bool value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (xtd::byte value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char8 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char16 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char32 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (wchar value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (decimal value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (double value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (float value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (int16 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (int32 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (int64 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (slong value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (sbyte value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (uint16 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (uint32 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (uint64 value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (xtd::ulong value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const xtd::string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (xtd::string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const std::string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (std::string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const std::u8string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (std::u8string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const std::u16string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (std::u16string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const std::u32string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (std::u32string &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const std::wstring &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (std::wstring &value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const char *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const char8 *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char8 *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const char16 *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char16 *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const char32 *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (char32 *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (const wchar *value)
 Casts a type into another type.
 
template<>
float xtd::as< float > (wchar *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (std::any value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (bool value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (xtd::byte value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char8 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char16 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char32 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (wchar value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (decimal value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (double value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (float value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (int16 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (int32 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (int64 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (slong value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (sbyte value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (uint16 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (uint32 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (uint64 value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (xtd::ulong value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const xtd::string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (xtd::string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const std::string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (std::string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const std::u8string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (std::u8string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const std::u16string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (std::u16string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const std::u32string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (std::u32string &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const std::wstring &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (std::wstring &value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const char *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const char8 *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char8 *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const char16 *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char16 *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const char32 *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (char32 *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (const wchar *value)
 Casts a type into another type.
 
template<typename new_type_t >
new_type_t xtd::as (wchar *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (std::any value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (bool value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (xtd::byte value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char8 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char16 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char32 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (wchar value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (decimal value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (double value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (float value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (int16 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (int32 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (int64 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (slong value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (sbyte value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (uint16 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (uint32 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (uint64 value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (xtd::string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const std::string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (std::string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (std::u8string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (std::u16string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (std::u32string &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (std::wstring &value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const char *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const char8 *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char8 *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const char16 *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char16 *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const char32 *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (char32 *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (const wchar *value)
 Casts a type into another type.
 
template<>
int16 xtd::as< int16 > (wchar *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (std::any value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (bool value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (xtd::byte value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char8 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char16 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char32 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (wchar value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (decimal value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (double value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (float value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (int16 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (int32 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (int64 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (slong value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (sbyte value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (uint16 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (uint32 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (uint64 value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (xtd::string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const std::string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (std::string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (std::u8string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (std::u16string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (std::u32string &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (std::wstring &value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const char *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const char8 *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char8 *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const char16 *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char16 *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const char32 *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (char32 *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (const wchar *value)
 Casts a type into another type.
 
template<>
int32 xtd::as< int32 > (wchar *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (std::any value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (bool value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (xtd::byte value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char8 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char16 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char32 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (wchar value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (decimal value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (double value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (float value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (int16 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (int32 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (int64 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (slong value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (sbyte value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (uint16 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (uint32 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (uint64 value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (xtd::string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const std::string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (std::string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (std::u8string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (std::u16string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (std::u32string &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (std::wstring &value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const char *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const char8 *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char8 *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const char16 *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char16 *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const char32 *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (char32 *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (const wchar *value)
 Casts a type into another type.
 
template<>
int64 xtd::as< int64 > (wchar *value)
 Casts a type into another type.
 
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.
 
template<typename new_type_t , typename current_type_t >
new_type_t & xtd::as (current_type_t &value)
 Casts a type into another type.
 
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.
 
template<typename new_type_t , typename current_type_t >
new_type_t * xtd::as (current_type_t *value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
xtd::uptr< new_type_t > xtd::as (xtd::uptr< current_type_t > &value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
xtd::uptr< new_type_t > xtd::as (xtd::uptr< current_type_t > &&value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
xtd::sptr< new_type_t > xtd::as (const xtd::sptr< current_type_t > &value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
xtd::sptr< new_type_t > xtd::as (xtd::sptr< current_type_t > &value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
xtd::sptr< new_type_t > xtd::as (xtd::sptr< current_type_t > &&value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (std::any value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (bool value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (xtd::byte value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char8 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char16 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char32 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (wchar value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (decimal value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (double value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (float value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (int16 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (int32 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (int64 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (slong value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (sbyte value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (uint16 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (uint32 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (uint64 value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (xtd::ulong value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const xtd::string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (xtd::string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const std::string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (std::string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const std::u8string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (std::u8string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const std::u16string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (std::u16string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const std::u32string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (std::u32string &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const std::wstring &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (std::wstring &value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const char *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const char8 *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char8 *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const char16 *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char16 *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const char32 *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (char32 *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (const wchar *value)
 Casts a type into another type.
 
template<>
sbyte xtd::as< sbyte > (wchar *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (std::any value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (bool value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (xtd::byte value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char8 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char16 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char32 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (wchar value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (decimal value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (double value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (float value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (int16 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (int32 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (int64 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (slong value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (sbyte value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (uint16 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (uint32 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (uint64 value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (xtd::ulong value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const xtd::string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (xtd::string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const std::string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (std::string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const std::u8string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (std::u8string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const std::u16string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (std::u16string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const std::u32string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (std::u32string &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const std::wstring &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (std::wstring &value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const char *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const char8 *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char8 *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const char16 *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char16 *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const char32 *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (char32 *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (const wchar *value)
 Casts a type into another type.
 
template<>
slong xtd::as< slong > (wchar *value)
 Casts a type into another type.
 
template<>
std::string xtd::as< std::string > (const std::string &value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (std::any value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (bool value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (xtd::byte value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (xtd::byte value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (char value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (char8 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (char16 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (char32 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (wchar value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (decimal value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (double value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (float value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (int16 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (int16 value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (int32 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (int32 value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (int64 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (int64 value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (slong value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (slong value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (sbyte value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (sbyte value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (uint16 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (uint16 value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (uint32 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (uint32 value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (uint64 value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (uint64 value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
string xtd::as< string > (xtd::ulong value)
 Casts a type into another type.
 
template<>
string xtd::as< string > (xtd::ulong value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (std::any value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (bool value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (xtd::byte value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char8 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char16 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char32 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (wchar value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (decimal value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (double value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (float value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (int16 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (int32 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (int64 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (slong value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (sbyte value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (uint16 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (uint32 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (uint64 value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (xtd::string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const std::string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (std::string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (std::u8string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (std::u16string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (std::u32string &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (std::wstring &value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const char *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const char8 *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char8 *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const char16 *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char16 *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const char32 *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (char32 *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (const wchar *value)
 Casts a type into another type.
 
template<>
uint16 xtd::as< uint16 > (wchar *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (std::any value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (bool value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (xtd::byte value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char8 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char16 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char32 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (wchar value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (decimal value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (double value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (float value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (int16 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (int32 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (int64 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (slong value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (sbyte value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (uint16 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (uint32 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (uint64 value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (xtd::string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const std::string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (std::string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (std::u8string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (std::u16string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (std::u32string &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (std::wstring &value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const char *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const char8 *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char8 *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const char16 *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char16 *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const char32 *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (char32 *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (const wchar *value)
 Casts a type into another type.
 
template<>
uint32 xtd::as< uint32 > (wchar *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (std::any value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (bool value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (xtd::byte value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char8 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char16 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char32 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (wchar value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (decimal value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (double value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (float value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (int16 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (int32 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (int64 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (slong value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (sbyte value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (uint16 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (uint32 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (uint64 value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (xtd::ulong value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const xtd::string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (xtd::string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const std::string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (std::string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const std::u8string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (std::u8string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const std::u16string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (std::u16string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const std::u32string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (std::u32string &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const std::wstring &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (std::wstring &value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const char *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const char8 *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char8 *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const char16 *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char16 *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const char32 *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (char32 *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (const wchar *value)
 Casts a type into another type.
 
template<>
uint64 xtd::as< uint64 > (wchar *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (std::any value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (bool value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (xtd::byte value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char8 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char16 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char32 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (wchar value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (decimal value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (double value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (float value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (int16 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (int32 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (int64 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (slong value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (sbyte value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (uint16 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (uint32 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (uint64 value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (xtd::ulong value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const xtd::string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (xtd::string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const xtd::string &value, xtd::byte from_base)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (std::string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::u8string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (std::u8string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::u16string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (std::u16string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::u32string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (std::u32string &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::wstring &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (std::wstring &value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char8 *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char8 *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char16 *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char16 *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char32 *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char32 *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const wchar *value)
 Casts a type into another type.
 
template<>
xtd::ulong xtd::as< xtd::ulong > (wchar *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (std::any value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (bool value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (xtd::byte value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char8 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char16 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char32 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (wchar value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (decimal value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (double value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (float value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (int16 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (int32 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (int64 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (slong value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (sbyte value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (uint16 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (uint32 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (uint64 value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (xtd::ulong value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const xtd::string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (xtd::string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const std::string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (std::string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const std::u8string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (std::u8string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const std::u16string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (std::u16string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const std::u32string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (std::u32string &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const std::wstring &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (std::wstring &value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const char *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const char8 *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char8 *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const char16 *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char16 *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const char32 *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (char32 *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (const wchar *value)
 Casts a type into another type.
 
template<>
wchar xtd::as< wchar > (wchar *value)
 Casts a type into another type.
 
template<>
bool xtd::is< bool > (bool value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< decimal > (decimal value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< double > (double value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< float > (float value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< sbyte > (sbyte value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< int16 > (int16 value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< int32 > (int32 value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< int64 > (int64 value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< slong > (slong value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< xtd::byte > (xtd::byte value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< uint16 > (uint16 value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< uint32 > (uint32 value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< uint64 > (uint64 value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< xtd::ulong > (xtd::ulong value)
 Checks if the result of an expression is compatible with a given type.
 
template<typename type_t >
bool xtd::is (std::any value)
 Checks if the result of an expression is compatible with a given type.
 
template<>
bool xtd::is< std::any > (std::any value)
 Checks if the result of an expression is compatible with a given type.
 
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.
 
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.
 
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.
 
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.
 
template<typename new_type_t , typename current_type_t >
bool xtd::is (xtd::sptr< current_type_t > &value)
 Checks if the result of an expression is compatible with a given type.
 
template<typename type_t , typename ... args_t>
any_object xtd::make_any_object (args_t &&... args)
 The xtd::make_any_object operator creates a xtd::any_object object.
 
template<typename type_t , typename ... args_t>
ptr< type_t > xtd::new_ptr (args_t &&... args)
 The xtd::new_ptr operator creates a xtd::ptr object.
 
template<typename type_t , typename ... args_t>
sptr< type_t > xtd::new_sptr (args_t &&... args)
 xtd::news_sptr operator creates a xtd::sptr object.
 
template<typename type_t , typename ... args_t>
uptr< type_t > xtd::new_uptr (args_t &&... args)
 xtd::new_uptr operator. This operator creates a xtd::uptr object.
 
template<typename value_t >
value_t xtd::parse (const std::string &str)
 Convert a string into a type.
 
template<typename value_t >
value_t xtd::parse (const std::string &str, const std::locale &locale)
 Convert a string into a type.
 
template<typename value_t >
value_t xtd::parse (const std::string &str, const std::string &fmt)
 Convert a string into a type.
 
template<>
std::string xtd::parse< std::string > (const std::string &str)
 Convert a string into a type.
 
template<typename value_t >
value_t xtd::parse (const std::string &str, number_styles)
 Convert a string into a type.
 
template<typename value_t >
value_t xtd::parse (const std::string &str, number_styles, const std::locale &locale)
 Convert a string into a type.
 
template<>
xtd::sbyte xtd::parse< xtd::sbyte > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
char xtd::parse< char > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
short xtd::parse< short > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
int xtd::parse< int > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
long xtd::parse< long > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
long long xtd::parse< long long > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
float xtd::parse< float > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
float xtd::parse< float > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type.
 
template<>
double xtd::parse< double > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
double xtd::parse< double > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type.
 
template<>
long double xtd::parse< long double > (const std::string &str, number_styles styles)
 Convert a string into a type.
 
template<>
long double xtd::parse< long double > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type.
 
template<>
xtd::sbyte xtd::parse< xtd::sbyte > (const std::string &str)
 Convert a string into a type.
 
template<>
char xtd::parse< char > (const std::string &str)
 Convert a string into a type.
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str)
 Convert a string into a type.
 
template<>
short xtd::parse< short > (const std::string &str)
 Convert a string into a type.
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str)
 Convert a string into a type.
 
template<>
int xtd::parse< int > (const std::string &str)
 Convert a string into a type.
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str)
 Convert a string into a type.
 
template<>
long xtd::parse< long > (const std::string &str)
 Convert a string into a type.
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str)
 Convert a string into a type.
 
template<>
long long xtd::parse< long long > (const std::string &str)
 Convert a string into a type.
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str)
 Convert a string into a type.
 
template<>
float xtd::parse< float > (const std::string &str)
 Convert a string into a type.
 
template<>
double xtd::parse< double > (const std::string &str)
 Convert a string into a type.
 
template<>
long double xtd::parse< long double > (const std::string &str)
 Convert a string into a type.
 
template<>
bool xtd::parse< bool > (const std::string &str)
 Convert a string into a type.
 
template<typename value_t >
value_t xtd::parse (const std::wstring &str)
 Convert a string into a type.
 
template<typename value_t >
value_t xtd::parse (const std::u16string &str)
 Convert a string into a type.
 
template<typename value_t >
value_t xtd::parse (const std::u32string &str)
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< char > &str, value_t &value) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< char > &str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value) noexcept
 Convert a string into a type.
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< char > &str, value_t &value, number_styles style) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value, number_styles style) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value, number_styles style) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value, number_styles style) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value, number_styles style) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< char > &str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t >
bool xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, number_styles style) noexcept
 Convert a string into a type.
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type.
 
template<>
xtd::time_span xtd::parse< time_span > (const std::string &str)
 Converts the string representation of a time interval to its xtd::time_span equivalent.
 
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.
 
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.
 
template<>
std::string xtd::to_string (const sbyte &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
template<>
std::string xtd::to_string (const char8 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const char16 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const char32 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const wchar &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
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.
 
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.
 
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.
 
template<>
std::wstring xtd::to_string (const sbyte &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
template<>
std::wstring xtd::to_string (const char8 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const char16 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const char32 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const wchar &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
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.
 
template<typename ... args_t>
void xtd::unused (args_t &&... 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.
 

Public Static Methods

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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
template<typename new_type_t , typename current_type_t >
static xtd::uptr< new_type_t > xtd::convert_pointer::to_unique_ptr (xtd::uptr< current_type_t > &value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
static xtd::uptr< new_type_t > xtd::convert_pointer::to_unique_ptr (xtd::uptr< current_type_t > &&value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
static xtd::sptr< new_type_t > xtd::convert_pointer::to_shared_ptr (const xtd::sptr< current_type_t > &value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
static xtd::sptr< new_type_t > xtd::convert_pointer::to_shared_ptr (xtd::sptr< current_type_t > &value)
 Casts a type into another type.
 
template<typename new_type_t , typename current_type_t >
static xtd::sptr< new_type_t > xtd::convert_pointer::to_shared_ptr (xtd::sptr< current_type_t > &&value)
 Casts a type into another type.
 

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.
Header
#include <xtd/add_last_arg_to_command>
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.

◆ 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

◆ 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

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.

Header
#include <xtd/action>
Namespace
xtd
Library
xtd.core

◆ async_result

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

Represents the status of an asynchronous operation.

Namespace
xtd
Library
xtd.core
Examples
The following example shows how to use xtd::async_result.
#include <xtd/console>
#include <xtd/iasync_result>
#include <xtd/threading/thread>
using namespace xtd;
using namespace xtd::threading;
class async_demo {
public:
// The method to be executed asynchronously.
string test_method(int call_duration, int* thread_id) {
console::write_line("Test method begins.");
thread::sleep(call_duration);
*thread_id = thread::current_thread().managed_thread_id();
return string::format("My call time was {}.", call_duration);
}
};
// The delegate must have the same signature as the method
// it will call asynchronously.
using async_method_caller = delegate<string(int call_duration, int* thread_id)>;
auto main() -> int {
// The asynchronous method puts the thread id here.
auto thread_id = 0;
// Create an instance of the test class.
auto ad = async_demo {};
// Create the delegate.
auto caller = async_method_caller {ad, &async_demo::test_method};
// Initiate the asychronous call.
auto result = caller.begin_invoke(3000, &thread_id);
thread::sleep(0);
console::write_line("Main thread {} does some work.", thread::current_thread().managed_thread_id());
// Wait for the wait_handle to become signaled.
result->async_wait_handle().wait_one();
// Perform additional processing here.
// Call end_invoke to retrieve the results.
auto return_value = caller.end_invoke(result);
// Close the wait handle.
result->async_wait_handle().close();
console::write_line("The call executed on thread {}, with return value \"{}\".", thread_id, return_value);
}
// This code produces the following output :
//
// Main thread 1 does some work.
// Test method begins.
// The call executed on thread 2, with return value "My call time was 3000.".
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
@ thread_id
Write the thread identity, which is represented by the return value of the Thread....
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.h:43
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.h:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10

◆ comparison

template<typename type_t >
using xtd::comparison = typedef delegate<int32, type_t, type_t>

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

Represents the method that compares two objects of the same type.

Library
xtd.core
Parameters
TThe type of the objects to compare.
xThe first object to compare.
yThe second object to compare.
Returns
Int32 A signed integer that indicates the relative values of x and y, as shown in the following table.
Value Meaning
less than 0 x is less than y.
0 x equals y.
Greater than 0 x is greater than y.

◆ const_object_ref

using xtd::const_object_ref = typedef std::reference_wrapper<const object>

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

Represents an object reference.

Header
#include <xtd/forms/const_object_ref>
Namespace
xtd::forms
Library
xtd.forms

◆ async_callback

using xtd::async_callback = typedef delegate<void(async_result ar)>

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

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

Parameters
arThe result of the asynchronous operation.
Header
#include <xtd/async_callback>
Namespace
xtd
Library
xtd.core

◆ enum_collection

template<typename enum_t >
using xtd::enum_collection = typedef std::vector<xtd::collections::generic::key_value_pair<enum_t, xtd::string> >

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

Represents a pair of an enum_t value and a string of an enum of type enum_t.

Header
#include <xtd/enum_collection>
Namespace
xtd
Library
xtd.core
Remarks
For more information about enumeration, see enum class guide.

◆ 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

◆ object_ref

using xtd::object_ref = typedef std::reference_wrapper<object>

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

Represents an object reference.

Header
#include <xtd/forms/object_ref>
Namespace
xtd::forms
Library
xtd.forms

◆ 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

◆ parameterized_thread_start

using xtd::threading::parameterized_thread_start = typedef delegate<void(std::any)>

#include <xtd.core/include/xtd/threading/parameterized_thread_start.h>

Represents the method that executes on a xtd::threading::thread.

Parameters
objAn object that contains data for the thread procedure.
delegate< void(arguments_t...)> action
Represents a xtd::delegate that has variable parameters and does not return a value.
Definition action.h:20
delegate< void(std::any)> parameterized_thread_start
Represents the method that executes on a xtd::threading::thread.
Definition parameterized_thread_start.h:26
Header
#include <xtd/threading/parameterized_thread_start>
Namespace
xtd::threading
Library
xtd.core

◆ thread_start

using xtd::threading::thread_start = typedef delegate<void()>

#include <xtd.core/include/xtd/threading/thread_start.h>

Represents the method that executes on a xtd::threading::thread.

delegate< void()> thread_start
Represents the method that executes on a xtd::threading::thread.
Definition thread_start.h:24
Header
#include <xtd/threading/thread_start>
Namespace
xtd::threading
Library
xtd.core

◆ timer_callback

using xtd::threading::timer_callback = typedef action<std::any>

#include <xtd.core/include/xtd/threading/timer_callback.h>

Represents the method that handles calls from a xtd::threading::timer.

action< std::any > timer_callback
Represents the method that handles calls from a xtd::threading::timer.
Definition timer_callback.h:28
Header
#include <xtd/threading/timer_callback>
Namespace
xtd::threading
Library
xtd.core
Parameters
stateAn object containing application-specific information relevant to the method invoked by this delegate.
Remarks
Use a xtd::threading::timer_callback delegate to specify the method that is called by a xtd::threading::timer. This method does not execute in the thread that created the timer; it executes in a separate thread pool thread that is provided by the system. The xtd::threading::timer_callback delegate invokes the method once after the start time elapses, and continues to invoke it once per timer interval until the xtd::threading::timer is destroy, or until the xtd::threading::timer::change method is called with the interval value Infinite.
Note
The timer delegate is specified when the timer is constructed, and cannot be changed. The start time for a xtd::threading::timer is passed in the due_time parameter of the xtd::threading::timer constructors, and the period is passed in the period parameter. For an example that demonstrates creating and using a xtd::threading::timer_callback delegate, see xtd::threading::timer.

◆ wait_callback

using xtd::threading::wait_callback = typedef delegate<void(std::any)>

#include <xtd.core/include/xtd/threading/wait_callback.h>

Represents a callback method to be executed by a thread pool thread.

delegate< void(std::any)> wait_callback
Represents a callback method to be executed by a thread pool thread.
Definition wait_callback.h:30
Header
#include <xtd/threading/wait_callback>
Namespace
xtd::threading
Library
xtd.core
Parameters
stateAn object containing information to be used by the callback method.
Remarks
xtd::threading::wait_callback represents a callback method that you want to execute on a xtd::threading::thread_pool thread. Create the delegate by passing your callback method to the xtd::threading::wait_callback constructor. Your method must have the signature shown here.
Queue the method for execution by passing the xtd::threading::wait_callback delegate to xtd::threading::thread_pool::queue_user_work_item. The callback method executes when a thread pool thread becomes available.
If you want to pass information to the callback method, create an object that contains the necessary information and pass it to the xtd::threading::thread_pool::queue_user_work_item(xtd::threading::wait_callback, xtd::object&) method as the second argument. Each time the callback method executes, the state parameter contains this object.
For examples that use the xtd::threading::wait_callback delegate, see the xtd::threading::thread_pool::queue_user_work_item method.

◆ wait_or_timer_callback

using xtd::threading::wait_or_timer_callback = typedef delegate<void(std::any, bool)>

#include <xtd.core/include/xtd/threading/wait_or_timer_callback.h>

Represents a method to be called when a xtd::threading::wait_handle is signaled or times out.

delegate< void(std::any, bool)> wait_or_timer_callback
Represents a method to be called when a xtd::threading::wait_handle is signaled or times out.
Definition wait_or_timer_callback.h:30
Header
#include <xtd/threading/wait_or_timer_callback>
Namespace
xtd::threading
Library
xtd.core
Parameters
stateAn object containing information to be used by the callback method each time it executes.
timed_outtrue if the xtd::threading::wait_handle timed out; false if it was signaled.
Remarks
xtd::threading::wait_or_timer_callback represents a callback method that you want to execute when a registered wait handle times out or is signaled. Create the delegate by passing your callback method to the xtd::threading::wait_or_timer_callback constructor. Your method must have the signature shown here.
Create the registered wait handle by passing the xtd::threading::wait_or_timer_callback delegate and a xtd::threading::wait_handle to xtd::threading::thread_pool::register_wait_for_single_object. Your callback method executes each time the xtd::threading::wait_handle times out or is signaled.
If you want to pass information to your callback method, create an object that contains the necessary information and pass it to xtd::threading::thread_pool::register_wait_for_single_object when you create the registered wait handle. Each time your callback method executes, the state parameter contains this object.

Enumeration Type Documentation

◆ architecture_id

enum class xtd::architecture_id
strong

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

Identifies the processor architecture, supported by an assembly.

Header
#include <xtd/architecture_id>
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.

◆ build_type

enum class xtd::build_type
strong

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

Identifies the build type.

Header
#include <xtd/build_type>
Namespace
xtd
Library
xtd.core
See also
compiler
Enumerator
debug 

Build type debug.

release 

Build type release.

◆ compiler_id

enum class xtd::compiler_id
strong

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

Identifies the compiler, supported by an assembly.

Header
#include <xtd/compiler_id>
Namespace
xtd
Library
xtd.core
See also
compiler
Enumerator
unknown 

The compiler is unknown.

msvc 

The compiler is Microsoft Visual Studio.

clang 

The compiler is clang.

gcc 

The compiler is gcc.

apple_clang 

The compiler is Apple clang.

microsoft_visual_studio 

The compiler is Microsoft Visual Studio.

Deprecated:
Replaced by xtd::compiler_id::msvc - Will be removed in version 0.4.0.

◆ console_color

enum class xtd::console_color
strong

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

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

Header
#include <xtd/console_color>
Namespace
xtd
Library
xtd.core
See also
console
Enumerator
default_color 

The default color.

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 class xtd::console_key
strong

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

Specifies the standard keys on a console.

Header
#include <xtd/console_key>
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

enum class xtd::console_modifiers
strong

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

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

Header
#include <xtd/console_modifiers>
Namespace
xtd
Library
xtd.core
See also
Console
Enumerator
none 

No modifier key.

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

enum class xtd::console_special_key
strong

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

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

Header
#include <xtd/console_special_key>
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.

◆ date_time_kind

enum class xtd::date_time_kind
strong

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

Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.

Namespace
xtd
Header
#include <xtd/date_time_kind>
Library
xtd.core
Remarks
A member of the xtd::date_time_kind enumeration is returned by the xtd::date_time::kind property.
The members of the xtd::date_time_kind enumeration are used in conversion operations between local time and Coordinated Universal Time (UTC), but not in comparison or arithmetic operations.
Enumerator
unspecified 

The time represented is not specified as either local time or Coordinated Universal Time (UTC).

utc 

The time represented is UTC.

local 

The time represented is local time.

◆ day_of_week

enum class xtd::day_of_week
strong

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

Specifies the day of the week.

Namespace
xtd
Header
#include <xtd/day_of_week>
Library
xtd.core
Examples
The following example demonstrates the xtd::date_time::day_of_week property and the xtd::day_of_week enumeration.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
using namespace xtd;
class program {
public:
static auto main() {
// Create a DateTime for the first of May, 2003.
auto dt = date_time {2003, 5, 1};
console::write_line("Is Thursday the day of the week for {0:d}?: {1}", dt, dt.day_of_week() == day_of_week::thursday);
console::write_line("The day of the week for {0:d} is {1}.", dt, dt.day_of_week());
}
};
startup_(program::main);
// This code produces the following output :
//
// Is Thursday the day of the week for 05/01/2003?: true
// The day of the week for 05/01/2003 is thursday.
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:85
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175
Remarks
The xtd::day_of_week enumeration represents the day of the week in calendars that have seven days per week. The value of the constants in this enumeration ranges from xtd::day_of_week::sunday to xtd::day_of_week::saturday. If cast to an integer, its value ranges from zero (which indicates xtd::day_of_week::sunday) to six (which indicates xtd::day_of_week::saturday).
This enumeration is useful when it is desirable to have a strongly typed specification of the day of the week. For example, this enumeration is the type of the property value for the xtd::date_time::day_of_week and xtd::date_time_offset::day_of_week properties.
The members of the xtd::day_of_week enumeration are not localized. To return the localized name of the day of the week, call the xtd::date_time::to_string(string) method with either the "h" or "H" format strings. The former format string produces the abbreviated weekday name; the latter produces the full weekday name.
Enumerator
sunday 

Indicates sunday.

monday 

Indicates monday.

tuesday 

Indicates tuesday.

wednesday 

Indicates wednesday.

thursday 

Indicates thursday.

friday 

Indicates friday.

saturday 

Indicates saturday.

◆ 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.

assert_dialog_result
Specifies identifiers to indicate the return value of an assert dialog box.
Definition assert_dialog_result.h:25
Header
#include <xtd/diagnostics/assert_dialog_result>
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).

◆ 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.

process_priority_class
Indicates the priority that the system associates with a process. This value, together with the prior...
Definition process_priority_class.h:26
Header
#include <xtd/diagnostics/process_priority_class>
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.

process_window_style
Specified how a new window should appear when the system starts a process.
Definition process_window_style.h:24
Header
#include <xtd/diagnostics/process_window_style>
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.

◆ 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.

enum class source_levels
source_levels
Specifies the levels of trace messages filtered by the source switch and event type filter....
Definition source_levels.h:25
Header
#include <xtd/diagnostics/source_levels>
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
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.

all 

Allows all events through.

◆ trace_event_type

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

Identifies the type of event that has caused the trace.

enum class trace_event_type
trace_event_type
Identifies the type of event that has caused the trace.
Definition trace_event_type.h:25
Header
#include <xtd/diagnostics/trace_event_type>
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

enum class xtd::diagnostics::trace_level
strong

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

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

enum class trace_level
trace_level
Specifies what messages to output for the debug, trace and trace_switch classes.
Definition trace_level.h:24
Header
#include <xtd/diagnostics/trace_level>
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.

◆ enum_attribute

enum class xtd::enum_attribute
strong

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

Specifies the enum attribute.

enum class enum_attribute
enum_attribute
Specifies the enum attribute.
Definition enum_attribute.h:22
Header
#include <xtd/enum_attribute>
Namespace
xtd
Library
xtd.core
Remarks
The xtd::enum_attribute is used with the xtd::enum_set_attribute struct.
For more information about enumeration, see enum class guide.
Enumerator
standard 

Enum standard attribute. The default value.

flags 

Enum flags attribute.

◆ 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.

◆ exit_mode

enum class xtd::exit_mode
strong

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

Specifies exit mode for the xtd::environment::program_exit event.

Namespace
xtd
Library
xtd.core
Remarks
Each of the above values represents a constant, which represent different exit status of to the program.
For more information about exit_mode, see EXIT_status.
Enumerator
normal 

Represent the exit mode when the terminates normally (via xtd::environment::exit or returning from the main function).

quick 

Represent the exit mode when the terminates quickly (via xtd::environment::quick_exit).

◆ exit_status

enum class xtd::exit_status
strong

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

Specifies exit status for the xtd::environment::exit method.

Namespace
xtd
Library
xtd.core
Remarks
Each of the above values represents a constant, which represent different exit status of to the program.
For more information about exit_status, see EXIT_status.
Enumerator
success 

Successful execution of a program. Is equal to EXIT_SUCCESS.

failure 

Unsuccessful execution of a program. Is equal to EXIT_FAILURE.

◆ file_access

enum class 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

enum class xtd::io::file_attributes
strong

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

Provides attributes for files and directories.

enum class file_attributes
file_attributes
Provides attributes for files and directories.
Definition file_attributes.h:24
Header
#include <xtd/io/file_attributes>
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.

◆ file_permissions

enum class xtd::io::file_permissions
strong

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

Provides permissions for files and directories.

enum class file_permissions
file_permissions
Provides permissions for files and directories.
Definition file_permissions.h:24
Header
#include <xtd/io/file_permissions>
Namespace
xtd::io
Library
xtd.core
Enumerator
none 

No permission bits are set.

owner_read 

File owner has read permission.

owner_write 

File owner has write permission.

owner_execute 

File owner has execute/search permission.

owner_all 

File owner has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::owner_read | xtd::io::file_permissions::owner_write | xtd::io::file_permissions::owner_execute.

group_read 

The file's ueer group has read permission.

group_write 

The file's ueer group has write permission.

group_execute 

The file's ueer group has execute/search permission.

group_all 

The file's ueer group has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::group_read | xtd::io::file_permissions::group_write | xtd::io::file_permissions::group_execute.

others_read 

Other ueers has read permission.

others_write 

Other ueers has write permission.

others_execute 

Other ueers has execute/search permission.

others_all 

Other ueers has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::others_read| xtd::io::file_permissions::others_write | xtd::io::file_permissions::others_execute.

all 

All users have read, write, and execute/search permissions. Equivalent to xtd::io::file_permissions::owner_all | xtd::io::file_permissions::group_all | xtd::io::file_permissions::others_all.

set_uid 

Set user ID to file owner user ID on execution.

set_gid 

Set group ID to file's user group ID on execution.

sticky_bit 

Implementation-defined meaning, but POSIX XSI specifies that when set on a directory, only file owners may delete files even if the directory is writeable to others (used with /tmp).

mask 

All valid permission bits. Equivalent to xtd::io::file_permissions::all | xtd::io::file_permissions::set_uid | xtd::io::file_permissions::set_gid | xtd::io::file_permissions::sticky_bit.

unknown 

Unknown permissions (e.g. when file or directory is created without permissions).

◆ search_option

enum class xtd::io::search_option
strong

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

Specifies whether to search the current directory, or the current directory and all subdirectories.

enum class search_option
search_option
Specifies whether to search the current directory, or the current directory and all subdirectories.
Definition search_option.h:25
Header
#include <xtd/io/search_option>
Namespace
xtd::io
Library
xtd.core
Remarks
If you choose xtd::io::search_option::all_directories in your search and the directory structure contains a link that creates a loop, the search operation enters an infinite loop.
Enumerator
top_directory_only 

Includes only the current directory in a search operation.

all_directories 

Includes the current directory and all its subdirectories in a search operation. This option includes reparse points such as mounted drives and symbolic links in the search.

◆ language_id

enum class 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
xtd::cpp_language
Remarks
For more info about c++ see cppreference.
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.

cpp23 

The language is c++23.

cpp26 

The language is c++26.

Todo:
Set the correct value when the __cplusplus macro is defined for c++26...
cpp29 

The language is c++29.

Todo:
Set the correct value when the __cplusplus macro is defined for c++29...

◆ month_of_year

enum class xtd::month_of_year
strong

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

Specifies the month of the year.

Namespace
xtd
Library
xtd.core
Examples
The following example demonstrates the xtd::date_time::days_in_month method and the xtd::month_of_year enumeration.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
class program {
public:
static auto main() {
xtd::console::write_line(days_in_july);
// days_in_feb gets 28 because the year 1998 was not a leap year.
// days_in_feb_leap gets 29 because the year 1996 was a leap year.
xtd::console::write_line(days_in_feb_leap);
}
};
startup_(program::main);
// This code produces the following output :
//
// 31
// 28
// 29
static int32 days_in_month(uint32 year, month_of_year month)
Returns the number of days in the specified month and year.
@ july
Indicates july.
@ february
Indicates february.
Remarks
The xtd::month_of_year enumeration represents the month of the year in calendars that have twelve month per year. The value of the constants in this enumeration ranges from xtd::month_of_year::january to xtd::month_of_year::december. If cast to an integer, its value ranges from one (which indicates xtd::month_of_year::january) to twelve (which indicates xtd::month_of_year::december).
This enumeration is useful when it is desirable to have a strongly typed specification of the day of the week. For example, this enumeration is the type of the property value for the xtd::date_time::day_of_week and xtd::date_time_offset::day_of_week properties.
The members of the xtd::month_of_year enumeration are not localized. To return the localized name of the month of the year, call the xtd::date_time::to_string(string) method with either the "j" or "J" format strings. The former format string produces the abbreviated month name; the latter produces the full month name.
Enumerator
january 

Indicates january.

february 

Indicates february.

march 

Indicates march.

april 

Indicates april.

may 

Indicates may.

june 

Indicates june.

july 

Indicates july.

august 

Indicates august.

september 

Indicates september.

october 

Indicates october.

november 

Indicates november.

december 

Indicates december.

◆ 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.

enum class address_family
address_family
Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.
Definition address_family.h:30
Header
#include <xtd/net/sockets/address_family>
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.

◆ io_control_code

#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.

enum class io_control_code : uint64
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.h:23
io_control_code
Specifies the IO control codes supported by the xtd::net::sockets::socket::io_control method.
Definition io_control_code.h:30
Header
#include <xtd/net/sockets/io_control_code>
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 xtd:nNet::sockets::socket::send_to 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 

Sets 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 

Sets 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 xtd::net::sockets::address_family::inter_network, the socket type must bextd::net::sockets::socket_type::raw, and the protocol type must be xtd::net::sockets::protocol_type::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 xtd::net::sockets::address_family::inter_network, the socket type must be xtd::net::sockets::socket_type::raw, and the protocol type must be xtd::net::sockets::protocol_type::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 xtd::net::sockets::address_family::inter_network, the socket type must be xtd::net::sockets::socket_type::raw, and the protocol type must be xtd::net::sockets::protocol_type::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 

Sets 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 

Sets 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 xtd::net::sockets::io_control_code::address_list_query 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.

ip_protection_level
A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the s...
Definition ip_protection_level.h:31
Header
#include <xtd/net/sockets/ip_protection_level>
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.

◆ 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.

enum class protocol_family
protocol_family
Specifies the type of protocol that an instance of the xtd::net::sockets::socket class can use.
Definition protocol_family.h:30
Header
#include <xtd/net/sockets/protocol_family>
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.

enum class protocol_type
protocol_type
Specifies the protocols that the xtd::net::sockets::socket class supports.
Definition protocol_type.h:30
Header
#include <xtd/net/sockets/protocol_type>
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

enum class xtd::net::sockets::select_mode
strong

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

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

enum class select_mode
select_mode
Defines the polling modes for the xtd::net::sockets::socket::poll method.
Definition select_mode.h:31
Header
#include <xtd/net/sockets/select_mode>
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.

socket_async_operation
The type of asynchronous socket operation most recently performed with this context object.
Definition socket_async_operation.h:32
Header
#include <xtd/net/sockets/socket_async_operation>
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.

enum class socket_error
socket_error
Defines error codes for the xtd::net::sockets::socket class.
Definition socket_error.h:30
Header
#include <xtd/net/sockets/socket_error>
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.

enum class socket_flags
socket_flags
Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bit...
Definition socket_flags.h:30
Header
#include <xtd/net/sockets/socket_flags>
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.

socket_information_options
Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows ...
Definition socket_information_options.h:31
Header
#include <xtd/net/sockets/socket_information_options>
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.

socket_option_level
Defines socket option levels for the xtd::net::sockets::socket::set_socket_option and xtd::net::socke...
Definition socket_option_level.h:31
Header
#include <xtd/net/sockets/socket_option_level>
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.

socket_option_name
Defines configuration option names.
Definition socket_option_name.h:31
Header
#include <xtd/net/sockets/socket_option_name>
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 

Gets the error status and clear.

type 

Gets 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 

Sets the IP header Time-to-Live field.

multicast_interface 

Sets 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 

Sets 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.

enum class socket_shutdown
socket_shutdown
Defines constants that are used by the xtd::net::sockets::socket::shutdown method.
Definition socket_shutdown.h:31
Header
#include <xtd/net/sockets/socket_shutdown>
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

enum class xtd::net::sockets::socket_type
strong

#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.

enum class socket_type
socket_type
Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents.
Definition socket_type.h:32
Header
#include <xtd/net/sockets/socket_type>
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.

◆ transmit_file_options

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

The TransmitFileOptions enumeration defines values used in file transfer requests.

transmit_file_options
The TransmitFileOptions enumeration defines values used in file transfer requests.
Definition transmit_file_options.h:32
Header
#include <xtd/net/sockets/transmit_file_options>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
This enumeration has a flags attribute that allows a bitwise combination of its member values.
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.

◆ number_styles

enum class 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 xtd::char_object::is_space(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 xtd::char_object::is_space(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 class 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.

linux 

The operating system is Linux.

tvos 

The operating system is tvOS Apple.

watchos 

The operating system is watchOS Apple.

free_bsd 

The operating system is FreeBSD.

mingw 

The operating system is MINGW.

msys 

The operating system is MSYS.

posix 

The operating system is Posix.

other 

The operating system is other.

◆ signal

enum class xtd::signal
strong

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

Specifies signals that can interrupt the current process.

Namespace
xtd
Library
xtd.core
Remarks
Each of the above values represents a constant, which represent different signals sent to the program.
For more information about signal, see std::signal.
Enumerator
abnormal_termination 

Abnormal termination triggered by abort call. Is equal to SIGABRT.

floating_point_exception 

Erroneous arithmetic operation such as divide by zero. Is equal to SIGFPE.

illegal_instruction 

Invalid program image, such as invalid instruction. Is equal to SIGILL.

interrupt 

external interrupt, usually initiated by the user. Is equal to SIGINT.

segmentation_violation 

Invalid memory access (segmentation fault). Is equal to SIGSEGV.

software_termination 

Termination request, sent to the program. Is equal to SIGTERM.

◆ synthesizer_state

#include <xtd.core/include/xtd/speech/synthesis/synthesizer_state.h>

Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer.

synthesizer_state
Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer.
Definition synthesizer_state.h:28
Header
#include <xtd/speech/synthesis/synthesizer_state>
Namespace
xtd::speech::synthesis
Library
xtd.core
Remarks
The xtd::speech::synthesis::speech_synthesizer::state property uses xtd::speech::synthesis::synthesizer_state to indicate the current state of the xtd::speech::synthesis::speech_synthesizer. See xtd::speech::synthesis::speech_synthesizer::state for an example.
The xtd::speech::synthesis::speech_synthesizer::previous_state and xtd::speech::synthesis::speech_synthesizer::state properties use xtd::speech::synthesis::synthesizer_state to indicate state of the xtd::speech::synthesis::speech_synthesizer when the xtd::speech::synthesis::speech_synthesizer::state_changed event is raised.
Enumerator
ready 

Indicates that the xtd::speech::synthesis::speech_synthesizer is ready to generate speech from a prompt.

speaking 

Indicates that the xtd::speech::synthesis::speech_synthesizer is speaking.

pause 

Indicates that the xtd::speech::synthesis::speech_synthesizer is paused.

◆ string_comparison

enum class xtd::string_comparison
strong

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

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

Namespace
xtd
Library
xtd.core
See also
xtd::string
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

enum class xtd::string_split_options
strong

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

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

Namespace
xtd
Library
xtd.core
See also
xtd::string
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.

◆ target_id

enum class xtd::target_id
strong

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

Identifies the target, supported by an assembly.

Namespace
xtd
Library
xtd.core
See also
xtd::target_type
Enumerator
unknown 

The target is unknown.

console_application 

The target is console application.

gui_application 

The target is gui application.

test_application 

The target is test application.

interface_library 

The target is interface library.

module_library 

The target is module library.

shared_library 

The target is shared library.

static_library 

The target is static library.

custom_target 

The target is custom target.

◆ uri_components

enum class xtd::uri_components
strong

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

This enumeration has a Flags attribute that allows a bitwise combination of its member values.

Namespace
xtd
Library
xtd.core
Remarks
This enumeration is used to identify the parts of a xtd::uri. This enumeration is used with the xtd::uri::get_components method.
Enumerator
none 

None data.

scheme 

The xtd::uri::scheme data.

user_info 

The xtd::uri::user_info data.

host 

The xtd::uri::host data.

port 

The xtd::uri::port data.

path 

The xtd::uri::local_path data.

query 

The xtd::uri::query data.

fragment 

The xtd::uri::fragment data.

strong_port 

The xtd::uri::port data. If no port data is in the xtd::uri and a default port has been assigned to the xtd::uri::scheme, the default port is returned. If there is no default port, -1 is returned.

keep_delimiter 

Specifies that the delimiter should be included.

host_and_port 

The xtd::uri::host and xtd::uri::port data. If no port data is in the Uri and a default port has been assigned to the xtd::uri::scheme, the default port is returned. If there is no default port, -1 is returned.

strong_authority 

The xtd::uri::user_info, host, and port data. If no port data is in the Uri and a default port has been assigned to the scheme, the default port is returned. If there is no default port, -1 is returned.

absolute_uri 

The xtd::uri::scheme, xtd::uri::user_info, xtd::uri::host, port, xtd::uri::local_path, xtd::uri::query, and xtd::uri::fragment data.

path_and_query 

The xtd::uri::local_path and xtd::uri::query data. Also see xtd::uri::path_and_query.

http_request_url 

The xtd::uri::scheme, xtd::uri::host, xtd::uri::port, xtd::uri::local_path, and xtd::uri::query data.

scheme_and_server 

The xtd::uri::scheme, xtd::uri::host, and xtd::uri::port data.

serialization_info_string 

The complete xtd::uri context that is needed for xtd::uri Serializers. The context includes the IPv6 scope.

◆ uri_format

enum class xtd::uri_format
strong

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

Controls how URI information is escaped.

Namespace
xtd
Library
xtd.core
Remarks
This enumeration is used by the xtd::uri::get_components method to specify the level of character escaping in the returned URI.
RFC 2396 defines the standard escaping for URIs, and is available at https://rfc-editor.org.
xtd::uri_format::safe_unescaped leaves the following characters escaped if the character has a reserved meaning in the requested xtd::uri_components: "%", "#", "?", "/", "\", and "".
Enumerator
safe_unescaped 

Characters that have a reserved meaning in the requested URI components remain escaped. All others are not escaped. See Remarks.

unescaped 

No escaping is performed.

uri_escaped 

Escaping is performed according to the rules in RFC 2396.

◆ uri_host_name_type

enum class xtd::uri_host_name_type
strong

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

Defines host name types for the xtd::uri::check_host_name method.

Namespace
xtd
Library
xtd.core
Remarks
The xtd::uri_host_name_type enumeration defines the values that the xtd::uri::check_host_name method can return.
Enumerator
unknown 

The type of the host name is not supplied.

basic 

The host is set, but the type cannot be determined.

dns 

The host name is a domain name system (DNS) style host name.

ip_v4 

The Uri is a relative xtd::uri.

ip_v6 

The Uri is a relative xtd::uri.

◆ uri_kind

enum class xtd::uri_kind
strong

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

Defines the kinds of Uris for the xtd::uri::is_well_formed_uri_string and several xtd::uri methods.

Namespace
xtd
Library
xtd.core
Remarks
Absolute URIs are characterized by a complete reference to the resource (example: http://www.contoso.com/index.html), while a relative URI depends on a previously defined base URI (example: /index.html).
The following list shows some APIs that use the xtd::uri_kind enum:
  • xtd::uri::uri(const xtd::utring&, xtd::uri_kind)
  • xtd::uri::is_well_formed_uri_string(const xtd::utring&, xtd::uri_kind)
  • xtd::uri::try_create(const xtd::utring&, xtd::uri_kind, xtd::uri&)
Enumerator
relative_or_absolute 

The kind of the xtd::uri is indeterminate.

absolute 

The xtd::uri is an absolute xtd::uri.

relative 

The xtd::uri is a relative xtd::uri.

◆ uri_partial

enum class xtd::uri_partial
strong

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

Defines the parts of a URI for the xtd::uri::get_left_part method.

Namespace
xtd
Library
xtd.core
Remarks
The xtd::uri_partial enumeration defines the values that can be passed to the xtd::uri::get_lLeft_part method.
Enumerator
scheme 

The scheme segment of the URI.

authority 

The scheme and authority segments of the URI.

path 

The scheme, authority, and path segments of the URI.

query 

The scheme, authority, path, and query segments of the URI.

Function Documentation

◆ cnull()

std::ostream xtd::cnull ( nullptr  )
inline

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

Provides a null std::ostream.

Header
#include <xtd/cnull>
Namespace
xtd
Library
xtd.core

◆ to_ptr() [1/4]

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);
Represents a Windows button control.
Definition button.h:49
@ control
The left or right CTRL modifier key.

◆ to_ptr() [2/4]

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() [3/4]

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() [4/4]

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_ref() [1/4]

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/4]

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() [3/4]

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() [4/4]

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_unique_ptr() [1/2]

template<typename new_type_t , typename current_type_t >
static xtd::uptr< new_type_t > xtd::convert_pointer::to_unique_ptr ( xtd::uptr< 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
xtd::uptr<button> value = xtd::new_uptr<xtd::forms::button>();
xtd::uptr<control> result = as<xtd::forms::control>(value);
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_unique_ptr() [2/2]

template<typename new_type_t , typename current_type_t >
static xtd::uptr< new_type_t > xtd::convert_pointer::to_unique_ptr ( xtd::uptr< 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
xtd::uptr<control> result = as<xtd::forms::control>(xtd::new_uptr<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [1/3]

template<typename new_type_t , typename current_type_t >
static xtd::sptr< new_type_t > xtd::convert_pointer::to_shared_ptr ( const xtd::sptr< 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 xtd::sptr<button> value = xtd::new_sptr<xtd::forms::button>();
const xtd::sptr<control> result = as<xtd::forms::control>(value);
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [2/3]

template<typename new_type_t , typename current_type_t >
static xtd::sptr< new_type_t > xtd::convert_pointer::to_shared_ptr ( xtd::sptr< 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
xtd::sptr<control> result = as<xtd::forms::control>(xtd::new_sptr<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [3/3]

template<typename new_type_t , typename current_type_t >
static xtd::sptr< new_type_t > xtd::convert_pointer::to_shared_ptr ( xtd::sptr< 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 xtd::sptr<button> value = xtd::new_sptr<xtd::forms::button>();
const xtd::sptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ delete_ptr() [1/2]

template<typename type_t >
void xtd::delete_ptr ( sptr< type_t > &  ptr)

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

xtd::delete_ptr operator delete a xtd::sptr or xtd::ptr object.

Library
xtd.core
Examples
this is example shows to use xtd::delete_ptr with xtd::version class
ptr<xtd::version> version = new_ptr<xtd::version>(1, 2, 3);
delete_ptr(version); // Not mandatory.
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.h:114
xtd::string to_string() const noexcept override
Converts the value of the current xtd::version object to its equivalent xtd::string representation.
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.h:27
void delete_ptr(sptr< type_t > &ptr)
xtd::delete_ptr operator delete a xtd::sptr or xtd::ptr object.
Definition delete_ptr.h:27
Remarks
This operator does not have to be called because when an xtd::sptr object leaves the scope, its value is automatically reset.
Use it when you want to reset the xtd::sptr object at a specific time.

◆ delete_ptr() [2/2]

template<typename type_t >
void xtd::delete_ptr ( uptr< type_t > &  ptr)

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

xtd::delete_ptr operator delete a xtd::uptr object.

Library
xtd.core
Examples
this is example shows to use xtd::delete_ptr with xtd::version class
uptr<xtd::version> version = new_uptr<xtd::version>(1, 2, 3);
delete_ptr(version); // Not mandatory.
Remarks
This operator does not have to be called because when an xtd::uptr object leaves the scope, its value is automatically reset.
Use it when you want to reset the xtd::ptr object at a specific time.

◆ delete_sptr()

template<typename type_t >
void xtd::delete_sptr ( sptr< type_t > &  ptr)

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

xtd::delete_sptr operator delete a xtd::sptr or xtd::ptr object.

Library
xtd.core
Examples
this is example shows to use xtd::delete_ptr with xtd::version class
ptr<xtd::version> version = new_ptr<xtd::version>(1, 2, 3);
delete_ptr(version); // Not mandatory.
Remarks
This operator does not have to be called because when an xtd::sptr object leaves the scope, its value is automatically reset.
Use it when you want to reset the xtd::sptr object at a specific time.

◆ delete_uptr()

template<typename type_t >
void xtd::delete_uptr ( uptr< type_t > &  ptr)

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

xtd::delete_uptr operator delete a xtd::uptr object.

Library
xtd.core
Examples
this is example shows to use xtd::delete_ptr with xtd::version class
uptr<xtd::version> version = new_uptr<xtd::version>(1, 2, 3);
delete_ptr(version); // Not mandatory.
Remarks
This operator does not have to be called because when an xtd::uptr object leaves the scope, its value is automatically reset.
Use it when you want to reset the xtd::ptr object at a specific time.

◆ as() [1/52]

template<typename type_t >
type_t xtd::as ( any_object o)

#include <xtd.core/include/xtd/internal/__as_any_object.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
bool result = as<bool>(value);
bool as< bool >(std::any value)
Casts a type into another type.
Definition __as_bool.h:36

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
bool result = as<bool>(value);
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
bool result = as<bool>(value);
char8_t char8
Represents a 8-bit unicode character.
Definition char8.h:27

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
bool result = as<bool>(value);
char16_t char16
Represents a 16-bit unicode character.
Definition char16.h:26
@ u
The U key.

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
bool result = as<bool>(value);
char32_t char32
Represents a 32-bit unicode character.
Definition char32.h:26

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
bool result = as<bool>(value);
wchar_t wchar
Represents a wide character.
Definition wchar.h:24

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
bool result = as<bool>(value);
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
bool result = as<bool>(value);
int16_t int16
Represents a 16-bit signed integer.
Definition int16.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
bool result = as<bool>(value);
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
bool result = as<bool>(value);
int64_t int64
Represents a 64-bit signed integer.
Definition int64.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
bool result = as<bool>(value);
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition slong.h:27

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
bool result = as<bool>(value);
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
bool result = as<bool>(value);
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
bool result = as<bool>(value);
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.h:23

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_bool.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
bool result = as<bool>(value);
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition ulong.h:27

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
bool result = as<bool>(value);
Represents text as a sequence of character units.
Definition basic_string.h:79

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
bool result = as<bool>(value);

◆ as< bool >() [37/42]

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [38/42]

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [39/42]

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [40/42]

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [41/42]

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
bool result = as<bool>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_bool.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
bool result = as<bool>(value);

◆ as< xtd::byte >() [1/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
xtd::byte result = as<xtd::byte>(value);
xtd::byte as< xtd::byte >(std::any value)
Casts a type into another type.
Definition __as_byte.h:36

◆ as< xtd::byte >() [2/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [3/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [4/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [5/43]

template<>
xtd::byte xtd::as< xtd::byte > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [6/43]

template<>
xtd::byte xtd::as< xtd::byte > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [7/43]

template<>
xtd::byte xtd::as< xtd::byte > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [8/43]

template<>
xtd::byte xtd::as< xtd::byte > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [9/43]

template<>
xtd::byte xtd::as< xtd::byte > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [10/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [11/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [12/43]

template<>
xtd::byte xtd::as< xtd::byte > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [13/43]

template<>
xtd::byte xtd::as< xtd::byte > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [14/43]

template<>
xtd::byte xtd::as< xtd::byte > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [15/43]

template<>
xtd::byte xtd::as< xtd::byte > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [16/43]

template<>
xtd::byte xtd::as< xtd::byte > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [17/43]

template<>
xtd::byte xtd::as< xtd::byte > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [18/43]

template<>
xtd::byte xtd::as< xtd::byte > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [19/43]

template<>
xtd::byte xtd::as< xtd::byte > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [20/43]

template<>
xtd::byte xtd::as< xtd::byte > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [21/43]

template<>
xtd::byte xtd::as< xtd::byte > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [22/43]

template<>
xtd::byte xtd::as< xtd::byte > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [23/43]

template<>
xtd::byte xtd::as< xtd::byte > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_byte.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 xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a byte.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
xtd::byte result = as<xtd::byte>(value, 16);

◆ as< xtd::byte >() [24/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [25/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [26/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [27/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [28/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [29/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [30/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [31/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [32/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [33/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [34/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [35/43]

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

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [36/43]

template<>
xtd::byte xtd::as< xtd::byte > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [37/43]

template<>
xtd::byte xtd::as< xtd::byte > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [38/43]

template<>
xtd::byte xtd::as< xtd::byte > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [39/43]

template<>
xtd::byte xtd::as< xtd::byte > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [40/43]

template<>
xtd::byte xtd::as< xtd::byte > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [41/43]

template<>
xtd::byte xtd::as< xtd::byte > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [42/43]

template<>
xtd::byte xtd::as< xtd::byte > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

◆ as< xtd::byte >() [43/43]

template<>
xtd::byte xtd::as< xtd::byte > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_byte.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char result = as<char>(value);
char as< char >(std::any value)
Casts a type into another type.
Definition __as_char.h:36

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

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

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char result = as<char>(value);

◆ as< char >() [18/42]

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char result = as<char>(value);

◆ as< char >() [19/42]

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char result = as<char>(value);

◆ as< char >() [20/42]

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

#include <xtd.core/include/xtd/internal/__as_char.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char result = as<char>(value);

◆ as< char >() [21/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char result = as<char>(value);

◆ as< char >() [22/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char result = as<char>(value);

◆ as< char >() [23/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char result = as<char>(value);

◆ as< char >() [24/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char result = as<char>(value);

◆ as< char >() [25/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char result = as<char>(value);

◆ as< char >() [26/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char result = as<char>(value);

◆ as< char >() [27/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char result = as<char>(value);

◆ as< char >() [28/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char result = as<char>(value);

◆ as< char >() [29/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char result = as<char>(value);

◆ as< char >() [30/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char result = as<char>(value);

◆ as< char >() [31/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char result = as<char>(value);

◆ as< char >() [32/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char result = as<char>(value);

◆ as< char >() [33/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char result = as<char>(value);

◆ as< char >() [34/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char result = as<char>(value);

◆ as< char >() [35/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
char result = as<char>(value);

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

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
char result = as<char>(value);

◆ as< char >() [37/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
char result = as<char>(value);

◆ as< char >() [38/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
char result = as<char>(value);

◆ as< char >() [39/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
char result = as<char>(value);

◆ as< char >() [40/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
char result = as<char>(value);

◆ as< char >() [41/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
char result = as<char>(value);

◆ as< char >() [42/42]

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

#include <xtd.core/include/xtd/internal/__as_char.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
char result = as<char>(value);

◆ as< char16 >() [1/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char16 result = as<char16>(value);
char16 as< char16 >(std::any value)
Casts a type into another type.
Definition __as_char16.h:36

◆ as< char16 >() [2/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char16 result = as<char16>(value);

◆ as< char16 >() [3/42]

template<>
char16 xtd::as< char16 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char16 result = as<char16>(value);

◆ as< char16 >() [4/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [5/42]

template<>
char16 xtd::as< char16 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [6/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [7/42]

template<>
char16 xtd::as< char16 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [8/42]

template<>
char16 xtd::as< char16 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [9/42]

template<>
char16 xtd::as< char16 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char16 result = as<char16>(value);

◆ as< char16 >() [10/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [11/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [12/42]

template<>
char16 xtd::as< char16 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
char16 result = as<char16>(value);

◆ as< char16 >() [13/42]

template<>
char16 xtd::as< char16 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
char16 result = as<char16>(value);

◆ as< char16 >() [14/42]

template<>
char16 xtd::as< char16 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char16 result = as<char16>(value);

◆ as< char16 >() [15/42]

template<>
char16 xtd::as< char16 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char16 result = as<char16>(value);

◆ as< char16 >() [16/42]

template<>
char16 xtd::as< char16 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char16 result = as<char16>(value);

◆ as< char16 >() [17/42]

template<>
char16 xtd::as< char16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char16 result = as<char16>(value);

◆ as< char16 >() [18/42]

template<>
char16 xtd::as< char16 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char16 result = as<char16>(value);

◆ as< char16 >() [19/42]

template<>
char16 xtd::as< char16 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char16 result = as<char16>(value);

◆ as< char16 >() [20/42]

template<>
char16 xtd::as< char16 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char16 result = as<char16>(value);

◆ as< char16 >() [21/42]

template<>
char16 xtd::as< char16 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [22/42]

template<>
char16 xtd::as< char16 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [23/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [24/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [25/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [26/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [27/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [28/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [29/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [30/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [31/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [32/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [33/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [34/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [35/42]

template<>
char16 xtd::as< char16 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [36/42]

template<>
char16 xtd::as< char16 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [37/42]

template<>
char16 xtd::as< char16 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [38/42]

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

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [39/42]

template<>
char16 xtd::as< char16 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [40/42]

template<>
char16 xtd::as< char16 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [41/42]

template<>
char16 xtd::as< char16 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char16 >() [42/42]

template<>
char16 xtd::as< char16 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_char16.h>

Casts a type into another type.

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

◆ as< char32 >() [1/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char32 result = as<char32>(value);
char32 as< char32 >(std::any value)
Casts a type into another type.
Definition __as_char32.h:36

◆ as< char32 >() [2/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char32 result = as<char32>(value);

◆ as< char32 >() [3/42]

template<>
char32 xtd::as< char32 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char32 result = as<char32>(value);

◆ as< char32 >() [4/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [5/42]

template<>
char32 xtd::as< char32 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [6/42]

template<>
char32 xtd::as< char32 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [7/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [8/42]

template<>
char32 xtd::as< char32 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [9/42]

template<>
char32 xtd::as< char32 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char32 result = as<char32>(value);

◆ as< char32 >() [10/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [11/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [12/42]

template<>
char32 xtd::as< char32 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
char32 result = as<char32>(value);

◆ as< char32 >() [13/42]

template<>
char32 xtd::as< char32 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
char32 result = as<char32>(value);

◆ as< char32 >() [14/42]

template<>
char32 xtd::as< char32 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char32 result = as<char32>(value);

◆ as< char32 >() [15/42]

template<>
char32 xtd::as< char32 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char32 result = as<char32>(value);

◆ as< char32 >() [16/42]

template<>
char32 xtd::as< char32 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char32 result = as<char32>(value);

◆ as< char32 >() [17/42]

template<>
char32 xtd::as< char32 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char32 result = as<char32>(value);

◆ as< char32 >() [18/42]

template<>
char32 xtd::as< char32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char32 result = as<char32>(value);

◆ as< char32 >() [19/42]

template<>
char32 xtd::as< char32 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char32 result = as<char32>(value);

◆ as< char32 >() [20/42]

template<>
char32 xtd::as< char32 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char32 result = as<char32>(value);

◆ as< char32 >() [21/42]

template<>
char32 xtd::as< char32 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [22/42]

template<>
char32 xtd::as< char32 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [23/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [24/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [25/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [26/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [27/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [28/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [29/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [30/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [31/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [32/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [33/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [34/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [35/42]

template<>
char32 xtd::as< char32 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [36/42]

template<>
char32 xtd::as< char32 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [37/42]

template<>
char32 xtd::as< char32 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [38/42]

template<>
char32 xtd::as< char32 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [39/42]

template<>
char32 xtd::as< char32 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [40/42]

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

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [41/42]

template<>
char32 xtd::as< char32 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char32 >() [42/42]

template<>
char32 xtd::as< char32 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_char32.h>

Casts a type into another type.

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

◆ as< char8 >() [1/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char8 result = as<char8>(value);
char8 as< char8 >(std::any value)
Casts a type into another type.
Definition __as_char8.h:37

◆ as< char8 >() [2/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char8 result = as<char8>(value);

◆ as< char8 >() [3/42]

template<>
char8 xtd::as< char8 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char8 result = as<char8>(value);

◆ as< char8 >() [4/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [5/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [6/42]

template<>
char8 xtd::as< char8 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [7/42]

template<>
char8 xtd::as< char8 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [8/42]

template<>
char8 xtd::as< char8 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [9/42]

template<>
char8 xtd::as< char8 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char8 result = as<char8>(value);

◆ as< char8 >() [10/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [11/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [12/42]

template<>
char8 xtd::as< char8 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
char8 result = as<char8>(value);

◆ as< char8 >() [13/42]

template<>
char8 xtd::as< char8 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
char8 result = as<char8>(value);

◆ as< char8 >() [14/42]

template<>
char8 xtd::as< char8 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char8 result = as<char8>(value);

◆ as< char8 >() [15/42]

template<>
char8 xtd::as< char8 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char8 result = as<char8>(value);

◆ as< char8 >() [16/42]

template<>
char8 xtd::as< char8 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char8 result = as<char8>(value);

◆ as< char8 >() [17/42]

template<>
char8 xtd::as< char8 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char8 result = as<char8>(value);

◆ as< char8 >() [18/42]

template<>
char8 xtd::as< char8 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char8 result = as<char8>(value);

◆ as< char8 >() [19/42]

template<>
char8 xtd::as< char8 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char8 result = as<char8>(value);

◆ as< char8 >() [20/42]

template<>
char8 xtd::as< char8 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char8 result = as<char8>(value);

◆ as< char8 >() [21/42]

template<>
char8 xtd::as< char8 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [22/42]

template<>
char8 xtd::as< char8 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [23/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [24/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [25/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [26/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [27/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [28/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [29/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [30/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [31/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [32/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [33/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [34/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [35/42]

template<>
char8 xtd::as< char8 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [36/42]

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

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [37/42]

template<>
char8 xtd::as< char8 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [38/42]

template<>
char8 xtd::as< char8 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [39/42]

template<>
char8 xtd::as< char8 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [40/42]

template<>
char8 xtd::as< char8 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [41/42]

template<>
char8 xtd::as< char8 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< char8 >() [42/42]

template<>
char8 xtd::as< char8 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_char8.h>

Casts a type into another type.

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

◆ as< decimal >() [1/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
decimal result = as<decimal>(value);
decimal as< decimal >(std::any value)
Casts a type into another type.
Definition __as_decimal.h:36

◆ as< decimal >() [2/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
decimal result = as<decimal>(value);

◆ as< decimal >() [3/42]

template<>
decimal xtd::as< decimal > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
decimal result = as<decimal>(value);

◆ as< decimal >() [4/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [5/42]

template<>
decimal xtd::as< decimal > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [6/42]

template<>
decimal xtd::as< decimal > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [7/42]

template<>
decimal xtd::as< decimal > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [8/42]

template<>
decimal xtd::as< decimal > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [9/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
decimal result = as<decimal>(value);

◆ as< decimal >() [10/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [11/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [12/42]

template<>
decimal xtd::as< decimal > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
decimal result = as<decimal>(value);

◆ as< decimal >() [13/42]

template<>
decimal xtd::as< decimal > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
decimal result = as<decimal>(value);

◆ as< decimal >() [14/42]

template<>
decimal xtd::as< decimal > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
decimal result = as<decimal>(value);

◆ as< decimal >() [15/42]

template<>
decimal xtd::as< decimal > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
decimal result = as<decimal>(value);

◆ as< decimal >() [16/42]

template<>
decimal xtd::as< decimal > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
decimal result = as<decimal>(value);

◆ as< decimal >() [17/42]

template<>
decimal xtd::as< decimal > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
decimal result = as<decimal>(value);

◆ as< decimal >() [18/42]

template<>
decimal xtd::as< decimal > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
decimal result = as<decimal>(value);

◆ as< decimal >() [19/42]

template<>
decimal xtd::as< decimal > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
decimal result = as<decimal>(value);

◆ as< decimal >() [20/42]

template<>
decimal xtd::as< decimal > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
decimal result = as<decimal>(value);

◆ as< decimal >() [21/42]

template<>
decimal xtd::as< decimal > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [22/42]

template<>
decimal xtd::as< decimal > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [23/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [24/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [25/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [26/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [27/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [28/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [29/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [30/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [31/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [32/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [33/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [34/42]

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

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [35/42]

template<>
decimal xtd::as< decimal > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [36/42]

template<>
decimal xtd::as< decimal > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [37/42]

template<>
decimal xtd::as< decimal > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [38/42]

template<>
decimal xtd::as< decimal > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [39/42]

template<>
decimal xtd::as< decimal > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [40/42]

template<>
decimal xtd::as< decimal > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [41/42]

template<>
decimal xtd::as< decimal > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< decimal >() [42/42]

template<>
decimal xtd::as< decimal > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_decimal.h>

Casts a type into another type.

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

◆ as< double >() [1/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
double result = as<double>(value);
double as< double >(std::any value)
Casts a type into another type.
Definition __as_double.h:36

◆ as< double >() [2/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

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

◆ as< double >() [3/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
double result = as<double>(value);

◆ as< double >() [4/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
double result = as<double>(value);

◆ as< double >() [5/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
double result = as<double>(value);

◆ as< double >() [6/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
double result = as<double>(value);

◆ as< double >() [7/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
double result = as<double>(value);

◆ as< double >() [8/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
double result = as<double>(value);

◆ as< double >() [9/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
double result = as<double>(value);

◆ as< double >() [10/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

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

◆ as< double >() [11/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

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

◆ as< double >() [12/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
double result = as<double>(value);

◆ as< double >() [13/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
double result = as<double>(value);

◆ as< double >() [14/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
double result = as<double>(value);

◆ as< double >() [15/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
double result = as<double>(value);

◆ as< double >() [16/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
double result = as<double>(value);

◆ as< double >() [17/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
double result = as<double>(value);

◆ as< double >() [18/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
double result = as<double>(value);

◆ as< double >() [19/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
double result = as<double>(value);

◆ as< double >() [20/42]

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

#include <xtd.core/include/xtd/internal/__as_double.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
double result = as<double>(value);

◆ as< double >() [21/42]

template<>
double xtd::as< double > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
double result = as<double>(value);

◆ as< double >() [22/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
double result = as<double>(value);

◆ as< double >() [23/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
double result = as<double>(value);

◆ as< double >() [24/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
double result = as<double>(value);

◆ as< double >() [25/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
double result = as<double>(value);

◆ as< double >() [26/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
double result = as<double>(value);

◆ as< double >() [27/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
double result = as<double>(value);

◆ as< double >() [28/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
double result = as<double>(value);

◆ as< double >() [29/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
double result = as<double>(value);

◆ as< double >() [30/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
double result = as<double>(value);

◆ as< double >() [31/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
double result = as<double>(value);

◆ as< double >() [32/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
double result = as<double>(value);

◆ as< double >() [33/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
double result = as<double>(value);

◆ as< double >() [34/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
double result = as<double>(value);

◆ as< double >() [35/42]

template<>
double xtd::as< double > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
double result = as<double>(value);

◆ as< double >() [36/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
double result = as<double>(value);

◆ as< double >() [37/42]

template<>
double xtd::as< double > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
double result = as<double>(value);

◆ as< double >() [38/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
double result = as<double>(value);

◆ as< double >() [39/42]

template<>
double xtd::as< double > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
double result = as<double>(value);

◆ as< double >() [40/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
double result = as<double>(value);

◆ as< double >() [41/42]

template<>
double xtd::as< double > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
double result = as<double>(value);

◆ as< double >() [42/42]

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

#include <xtd.core/include/xtd/internal/__as_double.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
double result = as<double>(value);

◆ as< float >() [1/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
float result = as<float>(value);
float as< float >(std::any value)
Casts a type into another type.
Definition __as_float.h:36

◆ as< float >() [2/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
float result = as<float>(value);

◆ as< float >() [3/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
float result = as<float>(value);

◆ as< float >() [4/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
float result = as<float>(value);

◆ as< float >() [5/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
float result = as<float>(value);

◆ as< float >() [6/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
float result = as<float>(value);

◆ as< float >() [7/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
float result = as<float>(value);

◆ as< float >() [8/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
float result = as<float>(value);

◆ as< float >() [9/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
float result = as<float>(value);

◆ as< float >() [10/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

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

◆ as< float >() [11/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

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

◆ as< float >() [12/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
float result = as<float>(value);

◆ as< float >() [13/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
float result = as<float>(value);

◆ as< float >() [14/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
float result = as<float>(value);

◆ as< float >() [15/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
float result = as<float>(value);

◆ as< float >() [16/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
float result = as<float>(value);

◆ as< float >() [17/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
float result = as<float>(value);

◆ as< float >() [18/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
float result = as<float>(value);

◆ as< float >() [19/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
float result = as<float>(value);

◆ as< float >() [20/42]

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

#include <xtd.core/include/xtd/internal/__as_float.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
float result = as<float>(value);

◆ as< float >() [21/42]

template<>
float xtd::as< float > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
float result = as<float>(value);

◆ as< float >() [22/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
float result = as<float>(value);

◆ as< float >() [23/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
float result = as<float>(value);

◆ as< float >() [24/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
float result = as<float>(value);

◆ as< float >() [25/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
float result = as<float>(value);

◆ as< float >() [26/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
float result = as<float>(value);

◆ as< float >() [27/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
float result = as<float>(value);

◆ as< float >() [28/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
float result = as<float>(value);

◆ as< float >() [29/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
float result = as<float>(value);

◆ as< float >() [30/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
float result = as<float>(value);

◆ as< float >() [31/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
float result = as<float>(value);

◆ as< float >() [32/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
float result = as<float>(value);

◆ as< float >() [33/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
float result = as<float>(value);

◆ as< float >() [34/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
float result = as<float>(value);

◆ as< float >() [35/42]

template<>
float xtd::as< float > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
float result = as<float>(value);

◆ as< float >() [36/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
float result = as<float>(value);

◆ as< float >() [37/42]

template<>
float xtd::as< float > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
float result = as<float>(value);

◆ as< float >() [38/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
float result = as<float>(value);

◆ as< float >() [39/42]

template<>
float xtd::as< float > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
float result = as<float>(value);

◆ as< float >() [40/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
float result = as<float>(value);

◆ as< float >() [41/42]

template<>
float xtd::as< float > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
float result = as<float>(value);

◆ as< float >() [42/42]

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

#include <xtd.core/include/xtd/internal/__as_float.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
float result = as<float>(value);

◆ as() [2/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = 42;
int result = as<int>(value);

◆ as() [3/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [4/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [5/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [6/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [7/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [8/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [9/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [10/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [11/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [12/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [13/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [14/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [15/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [16/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [17/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [18/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [19/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [20/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [21/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [22/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
object result = as<object>(value);

◆ as() [23/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
object result = as<object>(value);

◆ as() [24/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [25/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [26/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [27/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [28/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [29/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [30/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [31/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [32/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [33/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.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
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [34/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
intptr result = as<intptr>(value);
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.h:23

◆ as() [35/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

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

◆ as() [36/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [37/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [38/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [39/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [40/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [41/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [42/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [43/52]

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

#include <xtd.core/include/xtd/internal/__as_generic.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
intptr result = as<intptr>(value);

◆ as< int16 >() [1/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int16 result = as<int16>(value);
int16 as< int16 >(std::any value)
Casts a type into another type.
Definition __as_int16.h:36

◆ as< int16 >() [2/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int16 result = as<int16>(value);

◆ as< int16 >() [3/43]

template<>
int16 xtd::as< int16 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
int16 result = as<int16>(value);

◆ as< int16 >() [4/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [5/43]

template<>
int16 xtd::as< int16 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [6/43]

template<>
int16 xtd::as< int16 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [7/43]

template<>
int16 xtd::as< int16 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [8/43]

template<>
int16 xtd::as< int16 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [9/43]

template<>
int16 xtd::as< int16 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
int16 result = as<int16>(value);

◆ as< int16 >() [10/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [11/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [12/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [13/43]

template<>
int16 xtd::as< int16 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
int16 result = as<int16>(value);

◆ as< int16 >() [14/43]

template<>
int16 xtd::as< int16 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
int16 result = as<int16>(value);

◆ as< int16 >() [15/43]

template<>
int16 xtd::as< int16 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
int16 result = as<int16>(value);

◆ as< int16 >() [16/43]

template<>
int16 xtd::as< int16 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
int16 result = as<int16>(value);

◆ as< int16 >() [17/43]

template<>
int16 xtd::as< int16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
int16 result = as<int16>(value);

◆ as< int16 >() [18/43]

template<>
int16 xtd::as< int16 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
int16 result = as<int16>(value);

◆ as< int16 >() [19/43]

template<>
int16 xtd::as< int16 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
int16 result = as<int16>(value);

◆ as< int16 >() [20/43]

template<>
int16 xtd::as< int16 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
int16 result = as<int16>(value);

◆ as< int16 >() [21/43]

template<>
int16 xtd::as< int16 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [22/43]

template<>
int16 xtd::as< int16 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [23/43]

template<>
int16 xtd::as< int16 > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_int16.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 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
int16 result = as<int16>(value, 16);

◆ as< int16 >() [24/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [25/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [26/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [27/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [28/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [29/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [30/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [31/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [32/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [33/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [34/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [35/43]

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

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [36/43]

template<>
int16 xtd::as< int16 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [37/43]

template<>
int16 xtd::as< int16 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [38/43]

template<>
int16 xtd::as< int16 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [39/43]

template<>
int16 xtd::as< int16 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [40/43]

template<>
int16 xtd::as< int16 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [41/43]

template<>
int16 xtd::as< int16 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [42/43]

template<>
int16 xtd::as< int16 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int16 >() [43/43]

template<>
int16 xtd::as< int16 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_int16.h>

Casts a type into another type.

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

◆ as< int32 >() [1/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int32 result = as<int32>(value);
int32 as< int32 >(std::any value)
Casts a type into another type.
Definition __as_int32.h:36

◆ as< int32 >() [2/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int32 result = as<int32>(value);

◆ as< int32 >() [3/43]

template<>
int32 xtd::as< int32 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
int32 result = as<int32>(value);

◆ as< int32 >() [4/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [5/43]

template<>
int32 xtd::as< int32 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [6/43]

template<>
int32 xtd::as< int32 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [7/43]

template<>
int32 xtd::as< int32 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [8/43]

template<>
int32 xtd::as< int32 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [9/43]

template<>
int32 xtd::as< int32 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
int32 result = as<int32>(value);

◆ as< int32 >() [10/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [11/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [12/43]

template<>
int32 xtd::as< int32 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
int32 result = as<int32>(value);

◆ as< int32 >() [13/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [14/43]

template<>
int32 xtd::as< int32 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
int32 result = as<int32>(value);

◆ as< int32 >() [15/43]

template<>
int32 xtd::as< int32 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
int32 result = as<int32>(value);

◆ as< int32 >() [16/43]

template<>
int32 xtd::as< int32 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
int32 result = as<int32>(value);

◆ as< int32 >() [17/43]

template<>
int32 xtd::as< int32 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
int32 result = as<int32>(value);

◆ as< int32 >() [18/43]

template<>
int32 xtd::as< int32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
int32 result = as<int32>(value);

◆ as< int32 >() [19/43]

template<>
int32 xtd::as< int32 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
int32 result = as<int32>(value);

◆ as< int32 >() [20/43]

template<>
int32 xtd::as< int32 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
int32 result = as<int32>(value);

◆ as< int32 >() [21/43]

template<>
int32 xtd::as< int32 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [22/43]

template<>
int32 xtd::as< int32 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [23/43]

template<>
int32 xtd::as< int32 > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_int32.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 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int32.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
int32 result = as<int32>(value, 16);

◆ as< int32 >() [24/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [25/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [26/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [27/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [28/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [29/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [30/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [31/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [32/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [33/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [34/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [35/43]

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

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [36/43]

template<>
int32 xtd::as< int32 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [37/43]

template<>
int32 xtd::as< int32 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [38/43]

template<>
int32 xtd::as< int32 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [39/43]

template<>
int32 xtd::as< int32 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [40/43]

template<>
int32 xtd::as< int32 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [41/43]

template<>
int32 xtd::as< int32 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [42/43]

template<>
int32 xtd::as< int32 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int32 >() [43/43]

template<>
int32 xtd::as< int32 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_int32.h>

Casts a type into another type.

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

◆ as< int64 >() [1/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int64 result = as<int64>(value);
int64 as< int64 >(std::any value)
Casts a type into another type.
Definition __as_int64.h:36

◆ as< int64 >() [2/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int64 result = as<int64>(value);

◆ as< int64 >() [3/43]

template<>
int64 xtd::as< int64 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
int64 result = as<int64>(value);

◆ as< int64 >() [4/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [5/43]

template<>
int64 xtd::as< int64 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [6/43]

template<>
int64 xtd::as< int64 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [7/43]

template<>
int64 xtd::as< int64 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [8/43]

template<>
int64 xtd::as< int64 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [9/43]

template<>
int64 xtd::as< int64 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
int64 result = as<int64>(value);

◆ as< int64 >() [10/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [11/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [12/43]

template<>
int64 xtd::as< int64 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
int64 result = as<int64>(value);

◆ as< int64 >() [13/43]

template<>
int64 xtd::as< int64 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
int64 result = as<int64>(value);

◆ as< int64 >() [14/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
int64 result = as<int64>(value);

◆ as< int64 >() [15/43]

template<>
int64 xtd::as< int64 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
int64 result = as<int64>(value);

◆ as< int64 >() [16/43]

template<>
int64 xtd::as< int64 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
int64 result = as<int64>(value);

◆ as< int64 >() [17/43]

template<>
int64 xtd::as< int64 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
int64 result = as<int64>(value);

◆ as< int64 >() [18/43]

template<>
int64 xtd::as< int64 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
int64 result = as<int64>(value);

◆ as< int64 >() [19/43]

template<>
int64 xtd::as< int64 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
int64 result = as<int64>(value);

◆ as< int64 >() [20/43]

template<>
int64 xtd::as< int64 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
int64 result = as<int64>(value);

◆ as< int64 >() [21/43]

template<>
int64 xtd::as< int64 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [22/43]

template<>
int64 xtd::as< int64 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [23/43]

template<>
int64 xtd::as< int64 > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_int64.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 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int64.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
int64 result = as<int64>(value, 16);

◆ as< int64 >() [24/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [25/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [26/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [27/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [28/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [29/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [30/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [31/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [32/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [33/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [34/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [35/43]

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

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [36/43]

template<>
int64 xtd::as< int64 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [37/43]

template<>
int64 xtd::as< int64 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [38/43]

template<>
int64 xtd::as< int64 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [39/43]

template<>
int64 xtd::as< int64 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [40/43]

template<>
int64 xtd::as< int64 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [41/43]

template<>
int64 xtd::as< int64 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [42/43]

template<>
int64 xtd::as< int64 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as< int64 >() [43/43]

template<>
int64 xtd::as< int64 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_int64.h>

Casts a type into another type.

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

◆ as() [44/52]

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/internal/__as_pointer.h>

Casts a type into another type.

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

◆ as() [45/52]

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

#include <xtd.core/include/xtd/internal/__as_pointer.h>

Casts a type into another type.

Header
#include <xtd/as>
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() [46/52]

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/internal/__as_pointer.h>

Casts a type into another type.

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

◆ as() [47/52]

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

#include <xtd.core/include/xtd/internal/__as_pointer.h>

Casts a type into another type.

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

◆ as() [48/52]

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

#include <xtd.core/include/xtd/internal/__as_pointer.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::uptr<button> value = xtd::new_uptr<xtd::forms::button>();
xtd::uptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [49/52]

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

#include <xtd.core/include/xtd/internal/__as_pointer.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::uptr<control> result = as<xtd::forms::control>(xtd::new_uptr<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [50/52]

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

#include <xtd.core/include/xtd/internal/__as_pointer.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const xtd::sptr<button> value = xtd::new_sptr<xtd::forms::button>();
const xtd::sptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [51/52]

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

#include <xtd.core/include/xtd/internal/__as_pointer.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::sptr<control> result = as<xtd::forms::control>(xtd::new_sptr<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [52/52]

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

#include <xtd.core/include/xtd/internal/__as_pointer.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const xtd::sptr<button> value = xtd::new_sptr<xtd::forms::button>();
const xtd::sptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as< sbyte >() [1/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
sbyte result = as<sbyte>(value);
sbyte as< sbyte >(std::any value)
Casts a type into another type.
Definition __as_sbyte.h:36

◆ as< sbyte >() [2/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [3/43]

template<>
sbyte xtd::as< sbyte > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [4/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [5/43]

template<>
sbyte xtd::as< sbyte > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [6/43]

template<>
sbyte xtd::as< sbyte > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [7/43]

template<>
sbyte xtd::as< sbyte > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [8/43]

template<>
sbyte xtd::as< sbyte > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [9/43]

template<>
sbyte xtd::as< sbyte > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [10/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [11/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [12/43]

template<>
sbyte xtd::as< sbyte > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [13/43]

template<>
sbyte xtd::as< sbyte > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [14/43]

template<>
sbyte xtd::as< sbyte > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [15/43]

template<>
sbyte xtd::as< sbyte > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [16/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [17/43]

template<>
sbyte xtd::as< sbyte > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [18/43]

template<>
sbyte xtd::as< sbyte > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [19/43]

template<>
sbyte xtd::as< sbyte > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [20/43]

template<>
sbyte xtd::as< sbyte > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [21/43]

template<>
sbyte xtd::as< sbyte > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [22/43]

template<>
sbyte xtd::as< sbyte > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [23/43]

template<>
sbyte xtd::as< sbyte > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.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 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a sbyte.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
sbyte result = as<sbyte>(value, 16);

◆ as< sbyte >() [24/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [25/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [26/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [27/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [28/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [29/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [30/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [31/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [32/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [33/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [34/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [35/43]

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

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [36/43]

template<>
sbyte xtd::as< sbyte > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [37/43]

template<>
sbyte xtd::as< sbyte > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [38/43]

template<>
sbyte xtd::as< sbyte > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [39/43]

template<>
sbyte xtd::as< sbyte > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [40/43]

template<>
sbyte xtd::as< sbyte > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [41/43]

template<>
sbyte xtd::as< sbyte > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [42/43]

template<>
sbyte xtd::as< sbyte > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< sbyte >() [43/43]

template<>
sbyte xtd::as< sbyte > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_sbyte.h>

Casts a type into another type.

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

◆ as< slong >() [1/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
slong result = as<slong>(value);
slong as< slong >(std::any value)
Casts a type into another type.
Definition __as_slong.h:36

◆ as< slong >() [2/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
slong result = as<slong>(value);

◆ as< slong >() [3/43]

template<>
slong xtd::as< slong > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
slong result = as<slong>(value);

◆ as< slong >() [4/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [5/43]

template<>
slong xtd::as< slong > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [6/43]

template<>
slong xtd::as< slong > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [7/43]

template<>
slong xtd::as< slong > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [8/43]

template<>
slong xtd::as< slong > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [9/43]

template<>
slong xtd::as< slong > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
slong result = as<slong>(value);

◆ as< slong >() [10/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [11/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [12/43]

template<>
slong xtd::as< slong > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
slong result = as<slong>(value);

◆ as< slong >() [13/43]

template<>
slong xtd::as< slong > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
slong result = as<slong>(value);

◆ as< slong >() [14/43]

template<>
slong xtd::as< slong > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
slong result = as<slong>(value);

◆ as< slong >() [15/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
slong result = as<slong>(value);

◆ as< slong >() [16/43]

template<>
slong xtd::as< slong > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
slong result = as<slong>(value);

◆ as< slong >() [17/43]

template<>
slong xtd::as< slong > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
slong result = as<slong>(value);

◆ as< slong >() [18/43]

template<>
slong xtd::as< slong > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
slong result = as<slong>(value);

◆ as< slong >() [19/43]

template<>
slong xtd::as< slong > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
slong result = as<slong>(value);

◆ as< slong >() [20/43]

template<>
slong xtd::as< slong > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
slong result = as<slong>(value);

◆ as< slong >() [21/43]

template<>
slong xtd::as< slong > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [22/43]

template<>
slong xtd::as< slong > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [23/43]

template<>
slong xtd::as< slong > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_slong.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 slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a slong.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
slong result = as<slong>(value, 16);

◆ as< slong >() [24/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [25/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [26/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [27/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [28/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

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

◆ as< slong >() [29/43]

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

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
slong result = as<slong>(value);

◆ as< slong >() [30/43]

template<>
slong xtd::as< slong > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
slong result = as<slong>(value);

◆ as< slong >() [31/43]

template<>
slong xtd::as< slong > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
slong result = as<slong>(value);

◆ as< slong >() [32/43]

template<>
slong xtd::as< slong > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
slong result = as<slong>(value);

◆ as< slong >() [33/43]

template<>
slong xtd::as< slong > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
slong result = as<slong>(value);

◆ as< slong >() [34/43]

template<>
slong xtd::as< slong > ( const char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
slong result = as<slong>(value);

◆ as< slong >() [35/43]

template<>
slong xtd::as< slong > ( char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
slong result = as<slong>(value);

◆ as< slong >() [36/43]

template<>
slong xtd::as< slong > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
slong result = as<slong>(value);

◆ as< slong >() [37/43]

template<>
slong xtd::as< slong > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
slong result = as<slong>(value);

◆ as< slong >() [38/43]

template<>
slong xtd::as< slong > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
slong result = as<slong>(value);

◆ as< slong >() [39/43]

template<>
slong xtd::as< slong > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
slong result = as<slong>(value);

◆ as< slong >() [40/43]

template<>
slong xtd::as< slong > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
slong result = as<slong>(value);

◆ as< slong >() [41/43]

template<>
slong xtd::as< slong > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
slong result = as<slong>(value);

◆ as< slong >() [42/43]

template<>
slong xtd::as< slong > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
slong result = as<slong>(value);

◆ as< slong >() [43/43]

template<>
slong xtd::as< slong > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_slong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
slong result = as<slong>(value);

◆ as< std::string >()

template<>
std::string xtd::as< std::string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_std_string.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
string result = as<string>(value);
string as< string >(std::any value)
Casts a type into another type.
Definition __as_string.h:36

◆ as< string >() [1/30]

template<>
string xtd::as< string > ( std::any  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
xtd::ulong result = as<xtd::ulong>(value);
xtd::ulong as< xtd::ulong >(std::any value)
Casts a type into another type.
Definition __as_ulong.h:36

◆ as< string >() [2/30]

template<>
string xtd::as< string > ( bool  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [3/30]

template<>
string xtd::as< string > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [4/30]

template<>
string xtd::as< string > ( xtd::byte  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
string result = as<string>(value, 16);

◆ as< string >() [5/30]

template<>
string xtd::as< string > ( char  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [6/30]

template<>
string xtd::as< string > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [7/30]

template<>
string xtd::as< string > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [8/30]

template<>
string xtd::as< string > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [9/30]

template<>
string xtd::as< string > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [10/30]

template<>
string xtd::as< string > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [11/30]

template<>
string xtd::as< string > ( double  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [12/30]

template<>
string xtd::as< string > ( float  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [13/30]

template<>
string xtd::as< string > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [14/30]

template<>
string xtd::as< string > ( int16  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
string result = as<string>(value, 16);

◆ as< string >() [15/30]

template<>
string xtd::as< string > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [16/30]

template<>
string xtd::as< string > ( int32  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
string result = as<string>(value, 16);

◆ as< string >() [17/30]

template<>
string xtd::as< string > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [18/30]

template<>
string xtd::as< string > ( int64  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42;
string result = as<string>(value, 16);

◆ as< string >() [19/30]

template<>
string xtd::as< string > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [20/30]

template<>
string xtd::as< string > ( slong  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42;
string result = as<string>(value, 16);

◆ as< string >() [21/30]

template<>
string xtd::as< string > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [22/30]

template<>
string xtd::as< string > ( sbyte  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42;
string result = as<string>(value, 16);

◆ as< string >() [23/30]

template<>
string xtd::as< string > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [24/30]

template<>
string xtd::as< string > ( uint16  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42;
string result = as<string>(value, 16);

◆ as< string >() [25/30]

template<>
string xtd::as< string > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [26/30]

template<>
string xtd::as< string > ( uint32  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42;
string result = as<string>(value, 16);

◆ as< string >() [27/30]

template<>
string xtd::as< string > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [28/30]

template<>
string xtd::as< string > ( uint64  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42;
string result = as<string>(value, 16);

◆ as< string >() [29/30]

template<>
string xtd::as< string > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_string.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< string >() [30/30]

template<>
string xtd::as< string > ( xtd::ulong  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_string.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 string object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42;
string result = as<string>(value, 16);

◆ as< uint16 >() [1/43]

template<>
uint16 xtd::as< uint16 > ( std::any  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint16 result = as<uint16>(value);
uint16 as< uint16 >(std::any value)
Casts a type into another type.
Definition __as_uint16.h:36

◆ as< uint16 >() [2/43]

template<>
uint16 xtd::as< uint16 > ( bool  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [3/43]

template<>
uint16 xtd::as< uint16 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [4/43]

template<>
uint16 xtd::as< uint16 > ( char  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [5/43]

template<>
uint16 xtd::as< uint16 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [6/43]

template<>
uint16 xtd::as< uint16 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [7/43]

template<>
uint16 xtd::as< uint16 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [8/43]

template<>
uint16 xtd::as< uint16 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [9/43]

template<>
uint16 xtd::as< uint16 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [10/43]

template<>
uint16 xtd::as< uint16 > ( double  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [11/43]

template<>
uint16 xtd::as< uint16 > ( float  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [12/43]

template<>
uint16 xtd::as< uint16 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [13/43]

template<>
uint16 xtd::as< uint16 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [14/43]

template<>
uint16 xtd::as< uint16 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [15/43]

template<>
uint16 xtd::as< uint16 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [16/43]

template<>
uint16 xtd::as< uint16 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [17/43]

template<>
uint16 xtd::as< uint16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [18/43]

template<>
uint16 xtd::as< uint16 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [19/43]

template<>
uint16 xtd::as< uint16 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [20/43]

template<>
uint16 xtd::as< uint16 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [21/43]

template<>
uint16 xtd::as< uint16 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [22/43]

template<>
uint16 xtd::as< uint16 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [23/43]

template<>
uint16 xtd::as< uint16 > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.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 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
uint16 result = as<uint16>(value, 16);

◆ as< uint16 >() [24/43]

template<>
uint16 xtd::as< uint16 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [25/43]

template<>
uint16 xtd::as< uint16 > ( std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [26/43]

template<>
uint16 xtd::as< uint16 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [27/43]

template<>
uint16 xtd::as< uint16 > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [28/43]

template<>
uint16 xtd::as< uint16 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [29/43]

template<>
uint16 xtd::as< uint16 > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [30/43]

template<>
uint16 xtd::as< uint16 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [31/43]

template<>
uint16 xtd::as< uint16 > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [32/43]

template<>
uint16 xtd::as< uint16 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [33/43]

template<>
uint16 xtd::as< uint16 > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [34/43]

template<>
uint16 xtd::as< uint16 > ( const char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [35/43]

template<>
uint16 xtd::as< uint16 > ( char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [36/43]

template<>
uint16 xtd::as< uint16 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [37/43]

template<>
uint16 xtd::as< uint16 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [38/43]

template<>
uint16 xtd::as< uint16 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [39/43]

template<>
uint16 xtd::as< uint16 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [40/43]

template<>
uint16 xtd::as< uint16 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [41/43]

template<>
uint16 xtd::as< uint16 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [42/43]

template<>
uint16 xtd::as< uint16 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [43/43]

template<>
uint16 xtd::as< uint16 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_uint16.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
uint16 result = as<uint16>(value);

◆ as< uint32 >() [1/43]

template<>
uint32 xtd::as< uint32 > ( std::any  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint32 result = as<uint32>(value);
uint32 as< uint32 >(std::any value)
Casts a type into another type.
Definition __as_uint32.h:36

◆ as< uint32 >() [2/43]

template<>
uint32 xtd::as< uint32 > ( bool  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [3/43]

template<>
uint32 xtd::as< uint32 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [4/43]

template<>
uint32 xtd::as< uint32 > ( char  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [5/43]

template<>
uint32 xtd::as< uint32 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [6/43]

template<>
uint32 xtd::as< uint32 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [7/43]

template<>
uint32 xtd::as< uint32 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [8/43]

template<>
uint32 xtd::as< uint32 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [9/43]

template<>
uint32 xtd::as< uint32 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [10/43]

template<>
uint32 xtd::as< uint32 > ( double  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [11/43]

template<>
uint32 xtd::as< uint32 > ( float  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [12/43]

template<>
uint32 xtd::as< uint32 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [13/43]

template<>
uint32 xtd::as< uint32 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [14/43]

template<>
uint32 xtd::as< uint32 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [15/43]

template<>
uint32 xtd::as< uint32 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [16/43]

template<>
uint32 xtd::as< uint32 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [17/43]

template<>
uint32 xtd::as< uint32 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [18/43]

template<>
uint32 xtd::as< uint32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [19/43]

template<>
uint32 xtd::as< uint32 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [20/43]

template<>
uint32 xtd::as< uint32 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [21/43]

template<>
uint32 xtd::as< uint32 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [22/43]

template<>
uint32 xtd::as< uint32 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [23/43]

template<>
uint32 xtd::as< uint32 > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.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 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint32.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
uint32 result = as<uint32>(value, 16);

◆ as< uint32 >() [24/43]

template<>
uint32 xtd::as< uint32 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [25/43]

template<>
uint32 xtd::as< uint32 > ( std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [26/43]

template<>
uint32 xtd::as< uint32 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [27/43]

template<>
uint32 xtd::as< uint32 > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [28/43]

template<>
uint32 xtd::as< uint32 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [29/43]

template<>
uint32 xtd::as< uint32 > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [30/43]

template<>
uint32 xtd::as< uint32 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [31/43]

template<>
uint32 xtd::as< uint32 > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [32/43]

template<>
uint32 xtd::as< uint32 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [33/43]

template<>
uint32 xtd::as< uint32 > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [34/43]

template<>
uint32 xtd::as< uint32 > ( const char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [35/43]

template<>
uint32 xtd::as< uint32 > ( char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [36/43]

template<>
uint32 xtd::as< uint32 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [37/43]

template<>
uint32 xtd::as< uint32 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [38/43]

template<>
uint32 xtd::as< uint32 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [39/43]

template<>
uint32 xtd::as< uint32 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [40/43]

template<>
uint32 xtd::as< uint32 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [41/43]

template<>
uint32 xtd::as< uint32 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [42/43]

template<>
uint32 xtd::as< uint32 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [43/43]

template<>
uint32 xtd::as< uint32 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_uint32.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
uint32 result = as<uint32>(value);

◆ as< uint64 >() [1/43]

template<>
uint64 xtd::as< uint64 > ( std::any  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint64 result = as<uint64>(value);
uint64 as< uint64 >(std::any value)
Casts a type into another type.
Definition __as_uint64.h:36

◆ as< uint64 >() [2/43]

template<>
uint64 xtd::as< uint64 > ( bool  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [3/43]

template<>
uint64 xtd::as< uint64 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [4/43]

template<>
uint64 xtd::as< uint64 > ( char  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [5/43]

template<>
uint64 xtd::as< uint64 > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [6/43]

template<>
uint64 xtd::as< uint64 > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [7/43]

template<>
uint64 xtd::as< uint64 > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [8/43]

template<>
uint64 xtd::as< uint64 > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [9/43]

template<>
uint64 xtd::as< uint64 > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [10/43]

template<>
uint64 xtd::as< uint64 > ( double  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [11/43]

template<>
uint64 xtd::as< uint64 > ( float  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [12/43]

template<>
uint64 xtd::as< uint64 > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [13/43]

template<>
uint64 xtd::as< uint64 > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [14/43]

template<>
uint64 xtd::as< uint64 > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [15/43]

template<>
uint64 xtd::as< uint64 > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [16/43]

template<>
uint64 xtd::as< uint64 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [17/43]

template<>
uint64 xtd::as< uint64 > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [18/43]

template<>
uint64 xtd::as< uint64 > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [19/43]

template<>
uint64 xtd::as< uint64 > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [20/43]

template<>
uint64 xtd::as< uint64 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [21/43]

template<>
uint64 xtd::as< uint64 > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [22/43]

template<>
uint64 xtd::as< uint64 > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [23/43]

template<>
uint64 xtd::as< uint64 > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.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 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint64.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
uint64 result = as<uint64>(value, 16);

◆ as< uint64 >() [24/43]

template<>
uint64 xtd::as< uint64 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [25/43]

template<>
uint64 xtd::as< uint64 > ( std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [26/43]

template<>
uint64 xtd::as< uint64 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [27/43]

template<>
uint64 xtd::as< uint64 > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [28/43]

template<>
uint64 xtd::as< uint64 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [29/43]

template<>
uint64 xtd::as< uint64 > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [30/43]

template<>
uint64 xtd::as< uint64 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [31/43]

template<>
uint64 xtd::as< uint64 > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [32/43]

template<>
uint64 xtd::as< uint64 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [33/43]

template<>
uint64 xtd::as< uint64 > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [34/43]

template<>
uint64 xtd::as< uint64 > ( const char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [35/43]

template<>
uint64 xtd::as< uint64 > ( char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [36/43]

template<>
uint64 xtd::as< uint64 > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [37/43]

template<>
uint64 xtd::as< uint64 > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [38/43]

template<>
uint64 xtd::as< uint64 > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [39/43]

template<>
uint64 xtd::as< uint64 > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [40/43]

template<>
uint64 xtd::as< uint64 > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [41/43]

template<>
uint64 xtd::as< uint64 > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [42/43]

template<>
uint64 xtd::as< uint64 > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [43/43]

template<>
uint64 xtd::as< uint64 > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_uint64.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
uint64 result = as<uint64>(value);

◆ as< xtd::ulong >() [1/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( std::any  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [2/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( bool  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [3/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [4/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [5/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [6/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [7/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [8/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [9/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [10/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( double  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [11/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( float  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [12/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [13/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [14/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [15/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [16/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [17/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [18/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [19/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [20/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [21/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [22/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [23/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const xtd::string value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.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 xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a xtd::ulong.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "0x2A";
xtd::ulong result = as<xtd::ulong>(value, 16);

◆ as< xtd::ulong >() [24/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [25/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [26/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [27/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [28/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [29/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [30/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [31/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [32/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [33/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [34/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [35/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [36/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [37/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [38/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [39/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [40/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [41/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [42/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [43/43]

template<>
xtd::ulong xtd::as< xtd::ulong > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_ulong.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< wchar >() [1/42]

template<>
wchar xtd::as< wchar > ( std::any  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
wchar result = as<wchar>(value);
wchar as< wchar >(std::any value)
Casts a type into another type.
Definition __as_wchar.h:36

◆ as< wchar >() [2/42]

template<>
wchar xtd::as< wchar > ( bool  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
wchar result = as<wchar>(value);

◆ as< wchar >() [3/42]

template<>
wchar xtd::as< wchar > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
wchar result = as<wchar>(value);

◆ as< wchar >() [4/42]

template<>
wchar xtd::as< wchar > ( char  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [5/42]

template<>
wchar xtd::as< wchar > ( char8  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [6/42]

template<>
wchar xtd::as< wchar > ( char16  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [7/42]

template<>
wchar xtd::as< wchar > ( char32  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [8/42]

template<>
wchar xtd::as< wchar > ( wchar  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [9/42]

template<>
wchar xtd::as< wchar > ( decimal  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
wchar result = as<wchar>(value);

◆ as< wchar >() [10/42]

template<>
wchar xtd::as< wchar > ( double  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
wchar result = as<wchar>(value);

◆ as< wchar >() [11/42]

template<>
wchar xtd::as< wchar > ( float  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
wchar result = as<wchar>(value);

◆ as< wchar >() [12/42]

template<>
wchar xtd::as< wchar > ( int16  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
wchar result = as<wchar>(value);

◆ as< wchar >() [13/42]

template<>
wchar xtd::as< wchar > ( int32  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
wchar result = as<wchar>(value);

◆ as< wchar >() [14/42]

template<>
wchar xtd::as< wchar > ( int64  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
wchar result = as<wchar>(value);

◆ as< wchar >() [15/42]

template<>
wchar xtd::as< wchar > ( slong  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
wchar result = as<wchar>(value);

◆ as< wchar >() [16/42]

template<>
wchar xtd::as< wchar > ( sbyte  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
wchar result = as<wchar>(value);

◆ as< wchar >() [17/42]

template<>
wchar xtd::as< wchar > ( uint16  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
wchar result = as<wchar>(value);

◆ as< wchar >() [18/42]

template<>
wchar xtd::as< wchar > ( uint32  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
wchar result = as<wchar>(value);

◆ as< wchar >() [19/42]

template<>
wchar xtd::as< wchar > ( uint64  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
wchar result = as<wchar>(value);

◆ as< wchar >() [20/42]

template<>
wchar xtd::as< wchar > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
wchar result = as<wchar>(value);

◆ as< wchar >() [21/42]

template<>
wchar xtd::as< wchar > ( const xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [22/42]

template<>
wchar xtd::as< wchar > ( xtd::string value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [23/42]

template<>
wchar xtd::as< wchar > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [24/42]

template<>
wchar xtd::as< wchar > ( std::string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [25/42]

template<>
wchar xtd::as< wchar > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [26/42]

template<>
wchar xtd::as< wchar > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [27/42]

template<>
wchar xtd::as< wchar > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [28/42]

template<>
wchar xtd::as< wchar > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [29/42]

template<>
wchar xtd::as< wchar > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [30/42]

template<>
wchar xtd::as< wchar > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [31/42]

template<>
wchar xtd::as< wchar > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [32/42]

template<>
wchar xtd::as< wchar > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [33/42]

template<>
wchar xtd::as< wchar > ( const char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [34/42]

template<>
wchar xtd::as< wchar > ( char *  value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [35/42]

template<>
wchar xtd::as< wchar > ( const char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [36/42]

template<>
wchar xtd::as< wchar > ( char8 value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [37/42]

template<>
wchar xtd::as< wchar > ( const char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [38/42]

template<>
wchar xtd::as< wchar > ( char16 value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [39/42]

template<>
wchar xtd::as< wchar > ( const char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [40/42]

template<>
wchar xtd::as< wchar > ( char32 value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [41/42]

template<>
wchar xtd::as< wchar > ( const wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [42/42]

template<>
wchar xtd::as< wchar > ( wchar value)
inline

#include <xtd.core/include/xtd/internal/__as_wchar.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
wchar result = as<wchar>(value);

◆ 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.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
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:64
@ b
The B key.

◆ is< decimal >()

template<>
bool xtd::is< decimal > ( decimal  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
decimal d = 4.2;
std::cout << "d " << is<decimal>(d) ? "is" : "isn't" << " decimal" << endl;
}
bool is< decimal >(decimal value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:86
@ 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.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
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:108

◆ 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.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
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:130
@ f
The F key.

◆ is< sbyte >()

template<>
bool xtd::is< sbyte > ( sbyte  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
sbyte i = 42;
std::cout << "i " << is<sbyte>(i) ? "is" : "isn't" << " sbyte" << endl;
}
bool is< sbyte >(sbyte value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:152
@ i
The I key.

◆ is< int16 >()

template<>
bool xtd::is< int16 > ( int16  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
int16 i = 42;
std::cout << "i " << is<int16>(i) ? "is" : "isn't" << " int16" << endl;
}
bool is< int16 >(int16 value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:174

◆ is< int32 >()

template<>
bool xtd::is< int32 > ( int32  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
int32 i = 42;
std::cout << "i " << is<int32>(i) ? "is" : "isn't" << " int32" << endl;
}
bool is< int32 >(int32 value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:196

◆ is< int64 >()

template<>
bool xtd::is< int64 > ( int64  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
int64 i = 42;
std::cout << "i " << is<int64>(i) ? "is" : "isn't" << " int64" << endl;
}
bool is< int64 >(int64 value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:218

◆ is< slong >()

template<>
bool xtd::is< slong > ( slong  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
slong i = 42;
std::cout << "i " << is<slong>(i) ? "is" : "isn't" << " slong" << endl;
}
bool is< slong >(slong value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:240

◆ is< xtd::byte >()

template<>
bool xtd::is< xtd::byte > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
xtd::byte u = 42;
std::cout << "u " << is<xtd::byte>(u) ? "is" : "isn't" << " xtd::byte" << endl;
}
bool is< xtd::byte >(xtd::byte value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:262

◆ is< uint16 >()

template<>
bool xtd::is< uint16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
uint16 u = 42;
std::cout << "u " << is<uint16>(u) ? "is" : "isn't" << " uint16" << endl;
}
bool is< uint16 >(uint16 value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:284

◆ is< uint32 >()

template<>
bool xtd::is< uint32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
uint32 u = 42;
std::cout << "u " << is<uint32>(u) ? "is" : "isn't" << " uint32" << endl;
}
bool is< uint32 >(uint32 value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:306

◆ is< uint64 >()

template<>
bool xtd::is< uint64 > ( uint64  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
uint64 u = 42;
std::cout << "u " << is<uint64>(u) ? "is" : "isn't" << " uint64" << endl;
}
bool is< uint64 >(uint64 value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:328

◆ is< xtd::ulong >()

template<>
bool xtd::is< xtd::ulong > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
xtd::ulong u = 42;
std::cout << "u " << is<xtd::ulong>(i) ? "is" : "isn't" << " xtd::ulong" << endl;
}
bool is< xtd::ulong >(xtd::ulong value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:350

◆ is() [1/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.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ 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.

Header
#include <xtd/is>
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.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is() [3/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.

Header
#include <xtd/is>
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.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is() [5/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.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is() [6/6]

template<typename new_type_t , typename current_type_t >
bool xtd::is ( xtd::sptr< current_type_t > &  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ make_any_object()

template<typename type_t , typename ... args_t>
any_object xtd::make_any_object ( args_t &&...  args)

#include <xtd.core/include/xtd/make_any_object.h>

The xtd::make_any_object operator creates a xtd::any_object object.

Library
xtd.core
Examples
this is example shows to use xtd::make_any_object with xtd::version class
any_object ver = make_any_object<version>(1, 2, 3);
console::write_line("version = {}", ver.to_string());
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.h:28
string to_string() const noexcept override
Returns a xtd::string that represents the current object.
Definition any_object.h:85

◆ new_ptr()

template<typename type_t , typename ... args_t>
ptr< type_t > xtd::new_ptr ( args_t &&...  args)

#include <xtd.core/include/xtd/new_ptr.h>

The xtd::new_ptr operator creates a xtd::ptr object.

Library
xtd.core
Examples
this is example shows to use xtd::new_ptr with xtd::version class
ptr<xtd::version> version = new_ptr<xtd::version>(1, 2, 3);
delete_ptr(version); // Not mandatory.
Remarks
The xtd::new_ptr is equivalent to std::make_shared.

◆ new_sptr()

template<typename type_t , typename ... args_t>
sptr< type_t > xtd::new_sptr ( args_t &&...  args)

#include <xtd.core/include/xtd/new_sptr.h>

xtd::news_sptr operator creates a xtd::sptr object.

Library
xtd.core
Examples
this is example shows to use xtd::new_sptr with xtd::version class
sptr<xtd::version> version = new_sptr<xtd::version>(1, 2, 3);
delete_ptr(version); // Not mandatory.
Remarks
The xtd::new_sptr is equivalent to std::make_shared.

◆ new_uptr()

template<typename type_t , typename ... args_t>
uptr< type_t > xtd::new_uptr ( args_t &&...  args)

#include <xtd.core/include/xtd/new_uptr.h>

xtd::new_uptr operator. This operator creates a xtd::uptr object.

Library
xtd.core
Examples
this is example shows to use xtd::new_uptr with xtd::version class
uptr<xtd::version> version = new_uptr<xtd::version>(1, 2, 3);
delete_(version); // Not mandatory.
Remarks
The xtd::new_uptr is equivalent to std::make_unique.

◆ parse() [1/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [2/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [3/8]

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 string into a type.

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 string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [4/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
number_styles   
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [5/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
number_styles  ,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< xtd::sbyte >() [1/2]

template<>
xtd::sbyte xtd::parse< xtd::sbyte > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< char >() [1/2]

template<>
char xtd::parse< char > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned char >() [1/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 string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< short >() [1/2]

template<>
short xtd::parse< short > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned short >() [1/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 string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< int >() [1/2]

template<>
int xtd::parse< int > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core
Examples
parse_numeric.cpp.

◆ parse< unsigned int >() [1/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 string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long >() [1/2]

template<>
long xtd::parse< long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long >() [1/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 string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long long >() [1/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 string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long long >() [1/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 string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [1/3]

template<>
float xtd::parse< float > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [2/3]

template<>
float xtd::parse< float > ( const std::string &  str,
number_styles  styles,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< double >() [1/3]

template<>
double xtd::parse< double > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core
Examples
parse_floating_point.cpp.

◆ parse< double >() [2/3]

template<>
double xtd::parse< double > ( const std::string &  str,
number_styles  styles,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [1/3]

template<>
long double xtd::parse< long double > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [2/3]

template<>
long double xtd::parse< long double > ( const std::string &  str,
number_styles  styles,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< xtd::sbyte >() [2/2]

template<>
xtd::sbyte xtd::parse< xtd::sbyte > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< char >() [2/2]

template<>
char xtd::parse< char > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned char >() [2/2]

template<>
unsigned char xtd::parse< unsigned char > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< short >() [2/2]

template<>
short xtd::parse< short > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned short >() [2/2]

template<>
unsigned short xtd::parse< unsigned short > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< int >() [2/2]

template<>
int xtd::parse< int > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned int >() [2/2]

template<>
unsigned int xtd::parse< unsigned int > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long >() [2/2]

template<>
long xtd::parse< long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long >() [2/2]

template<>
unsigned long xtd::parse< unsigned long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long long >() [2/2]

template<>
long long xtd::parse< long long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long long >() [2/2]

template<>
unsigned long long xtd::parse< unsigned long long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [3/3]

template<>
float xtd::parse< float > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< double >() [3/3]

template<>
double xtd::parse< double > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [3/3]

template<>
long double xtd::parse< long double > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

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 string into a type.

Namespace
xtd
Library
xtd.core
Examples
parse_boolean.cpp.

◆ parse() [6/8]

template<typename value_t >
value_t xtd::parse ( const std::wstring &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [7/8]

template<typename value_t >
value_t xtd::parse ( const std::u16string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [8/8]

template<typename value_t >
value_t xtd::parse ( const std::u32string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [1/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< char > &  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [2/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char16 > &  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [3/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char32 > &  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [4/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char8 > &  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [5/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::wchar > &  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [6/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< char > &  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [7/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char16 > &  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [8/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char32 > &  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [9/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char8 > &  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [10/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::wchar > &  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [11/24]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [12/24]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [13/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< char > &  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [14/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char16 > &  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [15/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char32 > &  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [16/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char8 > &  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [17/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::wchar > &  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [18/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< char > &  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [19/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char16 > &  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [20/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char32 > &  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [21/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::char8 > &  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [22/24]

template<typename value_t >
bool xtd::try_parse ( const std::basic_string< xtd::wchar > &  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [23/24]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [24/24]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< time_span >()

template<>
xtd::time_span xtd::parse< time_span > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/time_span.h>

Converts the string representation of a time interval to its xtd::time_span equivalent.

Namespace
xtd
Library
xtd.core
Parameters
valueA string that specifies the time interval to convert.
Returns
A time interval that corresponds to value.
Exceptions
xtd::format_exceptionvalue has an invalid format.
valuerepresents a number that is less than xtd::time_span::min_value or greater than xtd::time_span::max_value.
-or-
At least one of the days, hours, minutes, or seconds components is outside its valid range.

◆ to_string() [1/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.
Examples
any_info.cpp, format_class_with_specified_formating_with_to_string.cpp, iformatable_vs_to_string.cpp, numeric_text_box.cpp, and sprintf_class_with_specified_formating_with_to_string.cpp.

◆ to_string() [2/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() [3/49]

template<>
std::string xtd::to_string ( const sbyte 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::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() [5/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() [6/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() [7/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() [8/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() [9/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() [10/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() [11/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() [12/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() [13/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() [14/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() [15/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() [16/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() [17/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() [18/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() [19/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() [20/49]

template<>
std::string xtd::to_string ( const char8 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() [21/49]

template<>
std::string xtd::to_string ( const char16 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::string xtd::to_string ( const char32 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() [23/49]

template<>
std::string xtd::to_string ( const wchar 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<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() [25/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() [26/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() [27/49]

template<>
std::wstring xtd::to_string ( const sbyte 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() [28/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() [29/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() [30/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() [31/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() [32/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() [33/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() [34/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() [35/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() [36/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() [37/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() [38/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() [39/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() [40/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() [41/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() [42/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() [43/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() [44/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() [45/49]

template<>
std::wstring xtd::to_string ( const char8 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() [46/49]

template<>
std::wstring xtd::to_string ( const char16 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() [47/49]

template<>
std::wstring xtd::to_string ( const char32 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::wstring xtd::to_string ( const wchar 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() [49/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.

◆ unused()

template<typename ... args_t>
void xtd::unused ( args_t &&...  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():