std::type_index

Defined in header <typeindex> class type_index; (since C++11) The type_index class is a wrapper class around a std::type_info object, that can be used as index in associative and unordered associative containers. The relationship with type_info object is maintained through a pointer, therefore type_index is CopyConstructible and CopyAssignable. Member functions (constructor) constructs the object (public member function) (destructor) (implicitly declared) destr

std::type_index::name

const char* name() const; (since C++11) Returns the name of the associated std::type_info object. Equivalent to calling std::type_info::name() directly. Parameters (none). Return value The name of the associated type_info object. Exceptions (none) (until C++14) noexcept specification: noexcept (since C++14) Example

std::type_index::type_index

type_index( const std::type_info& info ); (since C++11) Constructs the type index from std::type_info object. Parameters info - type information object Example

std::type_index::hash_code

size_t hash_code() const; (since C++11) Returns the hash code of the associated std::type_info object. Equivalent to calling type_info::hash_code directly. Parameters (none). Return value The hash code of the associated type_info object. Exceptions (none) (until C++14) noexcept specification: noexcept (since C++14) Example See also std::hash<std::type_index> (C++11) hash support for std::type_index (class template specialization)

std::type_index::operators

bool operator==( const type_index& rhs ) const; (since C++11) bool operator!=( const type_index& rhs ) const; (since C++11) bool operator<( const type_index& rhs ) const; (since C++11) bool operator<=( const type_index& rhs ) const; (since C++11) bool operator>( const type_index& rhs ) const; (since C++11) bool operator>=( const type_index& rhs ) const; (since C++11) Compares the underlying std::type_info objects. 1-2) Ch

std::tuple_element&lt;std::tuple&gt;

Defined in header <tuple> template< std::size_t I, class T > class tuple_element; /* undefined */ (1) (since C++11) template< std::size_t I, class... Types > class tuple_element< I, tuple<Types...> >; (2) (since C++11) Defined in header <tuple> Defined in header <array> Defined in header <utility> (since C++17)(since C++17) template< std::size_t I, class T > class tuple_element< I, const T > { typede

std::tuple_size(std::array)

Defined in header <array> template< class T, size_t N > class tuple_size< array<T, N> > : public integral_constant<size_t, N> { }; (1) (since C++11) Provides access to the number of elements in an std::array as a compile-time constant expression. Inherited from std::integral_constant Member constants value [static] N, the number of elements in the array (public static member constant) Member functions operator std::size_t conver

std::tuple_size&lt;std::tuple&gt;

Defined in header <tuple> template< class T > class tuple_size; /*undefined*/ (1) (since C++11) template< class... Types > class tuple_size< std::tuple<Types...> > : public std::integral_constant<std::size_t, sizeof...(Types)> { }; (2) (since C++11) Defined in header <tuple> Defined in header <array> Defined in header <utility> (since C++17)(since C++17) template< class T > class tuple_size<const T

std::tuple_size&lt;std::pair&gt;

Defined in header <utility> template< class T1, class T2 > struct tuple_size<std::pair<T1, T2>>; (since C++11) (until C++14) template <class T1, class T2> struct tuple_size<std::pair<T1, T2>> : std::integral_constant<std::size_t, 2> { }; (since C++14) The partial specialization of std::tuple_size for pairs provides a compile-time way to obtain the number of elements in a pair, which is always 2, using tuple-like syntax.

std::tuple::tuple

Defined in header <tuple> constexpr tuple(); (1) (since C++11) explicit tuple( const Types&... args ); (2) (since C++11) (until C++14) explicit constexpr tuple( const Types&... args ); (2) (since C++14) template< class... UTypes > explicit tuple( UTypes&&... args ); (3) (since C++11) (until C++14) template< class... UTypes > explicit constexpr tuple( UTypes&&... args ); (3) (since C++14) template< class... UTypes