NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
any.hpp File Reference
#include <cstddef>
#include <typeinfo>
#include <utility>
Include dependency graph for any.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nonstd::detail::in_place_type_tag< T >
 
struct  nonstd::detail::in_place_index_tag< K >
 
struct  nonstd::in_place_t
 
struct  nonstd::any_lite::detail::add_const< T >
 
struct  nonstd::any_lite::detail::remove_reference< T >
 
struct  nonstd::any_lite::detail::remove_reference< T & >
 
class  nonstd::any_lite::bad_any_cast
 
class  nonstd::any_lite::any
 

Namespaces

 nonstd
 
 nonstd::detail
 
 nonstd::any_lite
 
 nonstd::any_lite::detail
 

Macros

#define NONSTD_ANY_LITE_HPP
 
#define any_lite_MAJOR   0
 
#define any_lite_MINOR   1
 
#define any_lite_PATCH   0
 
#define any_lite_VERSION   any_STRINGIFY(any_lite_MAJOR) "." any_STRINGIFY(any_lite_MINOR) "." any_STRINGIFY(any_lite_PATCH)
 
#define any_STRINGIFY( x)   any_STRINGIFY_( x )
 
#define any_STRINGIFY_(x)   #x
 
#define any_ANY_DEFAULT   0
 
#define any_ANY_NONSTD   1
 
#define any_ANY_STD   2
 
#define any_CONFIG_SELECT_ANY   ( any_HAVE_STD_ANY ? any_ANY_STD : any_ANY_NONSTD )
 
#define any_CPLUSPLUS   __cplusplus
 
#define any_CPP98_OR_GREATER   ( any_CPLUSPLUS >= 199711L )
 
#define any_CPP11_OR_GREATER   ( any_CPLUSPLUS >= 201103L )
 
#define any_CPP14_OR_GREATER   ( any_CPLUSPLUS >= 201402L )
 
#define any_CPP17_OR_GREATER   ( any_CPLUSPLUS >= 201703L )
 
#define any_CPP20_OR_GREATER   ( any_CPLUSPLUS >= 202000L )
 
#define any_HAVE_STD_ANY   0
 
#define any_USES_STD_ANY   ( (any_CONFIG_SELECT_ANY == any_ANY_STD) || ((any_CONFIG_SELECT_ANY == any_ANY_DEFAULT) && any_HAVE_STD_ANY) )
 
#define nonstd_lite_HAVE_IN_PLACE_TYPES   1
 
#define nonstd_lite_in_place_t( T)   nonstd::in_place_t(&)( nonstd::detail::in_place_type_tag<T> )
 
#define nonstd_lite_in_place_type_t(T)   nonstd::in_place_t(&)( nonstd::detail::in_place_type_tag<T> )
 
#define nonstd_lite_in_place_index_t(K)   nonstd::in_place_t(&)( nonstd::detail::in_place_index_tag<K> )
 
#define nonstd_lite_in_place( T)   nonstd::in_place_type<T>
 
#define nonstd_lite_in_place_type(T)   nonstd::in_place_type<T>
 
#define nonstd_lite_in_place_index(K)   nonstd::in_place_index<K>
 
#define any_COMPILER_MSVC_VER   0
 
#define any_COMPILER_MSVC_VERSION   0
 
#define any_COMPILER_VERSION(major, minor, patch)   ( 10 * ( 10 * (major) + (minor) ) + (patch) )
 
#define any_COMPILER_CLANG_VERSION   0
 
#define any_COMPILER_GNUC_VERSION   0
 
#define any_HAVE(feature)   ( any_HAVE_##feature )
 
#define any_HAS_CPP0X   0
 
#define any_CPP11_90   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1500)
 
#define any_CPP11_100   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1600)
 
#define any_CPP11_120   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1800)
 
#define any_CPP11_140   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1900)
 
#define any_CPP14_000   (any_CPP14_OR_GREATER)
 
#define any_CPP17_000   (any_CPP17_OR_GREATER)
 
#define any_HAVE_CONSTEXPR_11   any_CPP11_140
 
#define any_HAVE_DEFAULT_FUNCTION_TEMPLATE_ARG   any_CPP11_120
 
#define any_HAVE_INITIALIZER_LIST   any_CPP11_120
 
#define any_HAVE_NOEXCEPT   any_CPP11_140
 
#define any_HAVE_NULLPTR   any_CPP11_100
 
#define any_HAVE_TYPE_TRAITS   any_CPP11_90
 
#define any_HAVE_STATIC_ASSERT   any_CPP11_100
 
#define any_HAVE_ADD_CONST   any_CPP11_90
 
#define any_HAVE_REMOVE_REFERENCE   any_CPP11_90
 
#define any_HAVE_TR1_ADD_CONST   (!! any_COMPILER_GNUC_VERSION )
 
#define any_HAVE_TR1_REMOVE_REFERENCE   (!! any_COMPILER_GNUC_VERSION )
 
#define any_HAVE_TR1_TYPE_TRAITS   (!! any_COMPILER_GNUC_VERSION )
 
#define any_HAVE_CONSTEXPR_14   any_CPP14_000
 
#define any_HAVE_NODISCARD   any_CPP17_000
 
#define any_constexpr   /*constexpr*/
 
#define any_constexpr14   /*constexpr*/
 
#define any_noexcept   /*noexcept*/
 
#define any_nullptr   NULL
 
#define any_nodiscard   /*[[nodiscard]]*/
 

Functions

template<class T >
in_place_t nonstd::in_place (detail::in_place_type_tag< T >=detail::in_place_type_tag< T >())
 
template<std::size_t K>
in_place_t nonstd::in_place (detail::in_place_index_tag< K >=detail::in_place_index_tag< K >())
 
template<class T >
in_place_t nonstd::in_place_type (detail::in_place_type_tag< T >=detail::in_place_type_tag< T >())
 
template<std::size_t K>
in_place_t nonstd::in_place_index (detail::in_place_index_tag< K >=detail::in_place_index_tag< K >())
 
void nonstd::any_lite::swap (any &x, any &y) any_noexcept
 
template<class ValueType >
any_nodiscard ValueType nonstd::any_lite::any_cast (any const &operand)
 
template<class ValueType >
any_nodiscard ValueType nonstd::any_lite::any_cast (any &operand)
 
template<class ValueType >
any_nodiscard ValueType const * nonstd::any_lite::any_cast (any const *operand) any_noexcept
 
template<class ValueType >
any_nodiscard ValueType * nonstd::any_lite::any_cast (any *operand) any_noexcept
 

Macro Definition Documentation

◆ NONSTD_ANY_LITE_HPP

#define NONSTD_ANY_LITE_HPP

Definition at line 12 of file any.hpp.

◆ any_lite_MAJOR

#define any_lite_MAJOR   0

Definition at line 14 of file any.hpp.

◆ any_lite_MINOR

#define any_lite_MINOR   1

Definition at line 15 of file any.hpp.

◆ any_lite_PATCH

#define any_lite_PATCH   0

Definition at line 16 of file any.hpp.

◆ any_lite_VERSION

Definition at line 18 of file any.hpp.

◆ any_STRINGIFY

#define any_STRINGIFY (   x)    any_STRINGIFY_( x )

Definition at line 20 of file any.hpp.

◆ any_STRINGIFY_

#define any_STRINGIFY_ (   x)    #x

Definition at line 21 of file any.hpp.

◆ any_ANY_DEFAULT

#define any_ANY_DEFAULT   0

Definition at line 25 of file any.hpp.

◆ any_ANY_NONSTD

#define any_ANY_NONSTD   1

Definition at line 26 of file any.hpp.

◆ any_ANY_STD

#define any_ANY_STD   2

Definition at line 27 of file any.hpp.

◆ any_CONFIG_SELECT_ANY

#define any_CONFIG_SELECT_ANY   ( any_HAVE_STD_ANY ? any_ANY_STD : any_ANY_NONSTD )

Definition at line 30 of file any.hpp.

◆ any_CPLUSPLUS

#define any_CPLUSPLUS   __cplusplus

Definition at line 40 of file any.hpp.

◆ any_CPP98_OR_GREATER

#define any_CPP98_OR_GREATER   ( any_CPLUSPLUS >= 199711L )

Definition at line 44 of file any.hpp.

◆ any_CPP11_OR_GREATER

#define any_CPP11_OR_GREATER   ( any_CPLUSPLUS >= 201103L )

Definition at line 45 of file any.hpp.

◆ any_CPP14_OR_GREATER

#define any_CPP14_OR_GREATER   ( any_CPLUSPLUS >= 201402L )

Definition at line 46 of file any.hpp.

◆ any_CPP17_OR_GREATER

#define any_CPP17_OR_GREATER   ( any_CPLUSPLUS >= 201703L )

Definition at line 47 of file any.hpp.

◆ any_CPP20_OR_GREATER

#define any_CPP20_OR_GREATER   ( any_CPLUSPLUS >= 202000L )

Definition at line 48 of file any.hpp.

◆ any_HAVE_STD_ANY

#define any_HAVE_STD_ANY   0

Definition at line 59 of file any.hpp.

◆ any_USES_STD_ANY

#define any_USES_STD_ANY   ( (any_CONFIG_SELECT_ANY == any_ANY_STD) || ((any_CONFIG_SELECT_ANY == any_ANY_DEFAULT) && any_HAVE_STD_ANY) )

Definition at line 62 of file any.hpp.

◆ nonstd_lite_HAVE_IN_PLACE_TYPES

#define nonstd_lite_HAVE_IN_PLACE_TYPES   1

Definition at line 69 of file any.hpp.

◆ nonstd_lite_in_place_t

#define nonstd_lite_in_place_t (   T)    nonstd::in_place_t(&)( nonstd::detail::in_place_type_tag<T> )

Definition at line 139 of file any.hpp.

◆ nonstd_lite_in_place_type_t

#define nonstd_lite_in_place_type_t (   T)    nonstd::in_place_t(&)( nonstd::detail::in_place_type_tag<T> )

Definition at line 140 of file any.hpp.

◆ nonstd_lite_in_place_index_t

#define nonstd_lite_in_place_index_t (   K)    nonstd::in_place_t(&)( nonstd::detail::in_place_index_tag<K> )

Definition at line 141 of file any.hpp.

◆ nonstd_lite_in_place

#define nonstd_lite_in_place (   T)    nonstd::in_place_type<T>

Definition at line 143 of file any.hpp.

◆ nonstd_lite_in_place_type

#define nonstd_lite_in_place_type (   T)    nonstd::in_place_type<T>

Definition at line 144 of file any.hpp.

◆ nonstd_lite_in_place_index

#define nonstd_lite_in_place_index (   K)    nonstd::in_place_index<K>

Definition at line 145 of file any.hpp.

◆ any_COMPILER_MSVC_VER

#define any_COMPILER_MSVC_VER   0

Definition at line 192 of file any.hpp.

◆ any_COMPILER_MSVC_VERSION

#define any_COMPILER_MSVC_VERSION   0

Definition at line 193 of file any.hpp.

◆ any_COMPILER_VERSION

#define any_COMPILER_VERSION (   major,
  minor,
  patch 
)    ( 10 * ( 10 * (major) + (minor) ) + (patch) )

Definition at line 196 of file any.hpp.

◆ any_COMPILER_CLANG_VERSION

#define any_COMPILER_CLANG_VERSION   0

Definition at line 201 of file any.hpp.

◆ any_COMPILER_GNUC_VERSION

#define any_COMPILER_GNUC_VERSION   0

Definition at line 207 of file any.hpp.

◆ any_HAVE

#define any_HAVE (   feature)    ( any_HAVE_##feature )

Definition at line 215 of file any.hpp.

◆ any_HAS_CPP0X

#define any_HAS_CPP0X   0

Definition at line 220 of file any.hpp.

◆ any_CPP11_90

#define any_CPP11_90   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1500)

Definition at line 223 of file any.hpp.

◆ any_CPP11_100

#define any_CPP11_100   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1600)

Definition at line 224 of file any.hpp.

◆ any_CPP11_120

#define any_CPP11_120   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1800)

Definition at line 225 of file any.hpp.

◆ any_CPP11_140

#define any_CPP11_140   (any_CPP11_OR_GREATER || any_COMPILER_MSVC_VER >= 1900)

Definition at line 226 of file any.hpp.

◆ any_CPP14_000

#define any_CPP14_000   (any_CPP14_OR_GREATER)

Definition at line 228 of file any.hpp.

◆ any_CPP17_000

#define any_CPP17_000   (any_CPP17_OR_GREATER)

Definition at line 229 of file any.hpp.

◆ any_HAVE_CONSTEXPR_11

#define any_HAVE_CONSTEXPR_11   any_CPP11_140

Definition at line 233 of file any.hpp.

◆ any_HAVE_DEFAULT_FUNCTION_TEMPLATE_ARG

#define any_HAVE_DEFAULT_FUNCTION_TEMPLATE_ARG   any_CPP11_120

Definition at line 234 of file any.hpp.

◆ any_HAVE_INITIALIZER_LIST

#define any_HAVE_INITIALIZER_LIST   any_CPP11_120

Definition at line 236 of file any.hpp.

◆ any_HAVE_NOEXCEPT

#define any_HAVE_NOEXCEPT   any_CPP11_140

Definition at line 237 of file any.hpp.

◆ any_HAVE_NULLPTR

#define any_HAVE_NULLPTR   any_CPP11_100

Definition at line 238 of file any.hpp.

◆ any_HAVE_TYPE_TRAITS

#define any_HAVE_TYPE_TRAITS   any_CPP11_90

Definition at line 239 of file any.hpp.

◆ any_HAVE_STATIC_ASSERT

#define any_HAVE_STATIC_ASSERT   any_CPP11_100

Definition at line 240 of file any.hpp.

◆ any_HAVE_ADD_CONST

#define any_HAVE_ADD_CONST   any_CPP11_90

Definition at line 241 of file any.hpp.

◆ any_HAVE_REMOVE_REFERENCE

#define any_HAVE_REMOVE_REFERENCE   any_CPP11_90

Definition at line 242 of file any.hpp.

◆ any_HAVE_TR1_ADD_CONST

#define any_HAVE_TR1_ADD_CONST   (!! any_COMPILER_GNUC_VERSION )

Definition at line 244 of file any.hpp.

◆ any_HAVE_TR1_REMOVE_REFERENCE

#define any_HAVE_TR1_REMOVE_REFERENCE   (!! any_COMPILER_GNUC_VERSION )

Definition at line 245 of file any.hpp.

◆ any_HAVE_TR1_TYPE_TRAITS

#define any_HAVE_TR1_TYPE_TRAITS   (!! any_COMPILER_GNUC_VERSION )

Definition at line 246 of file any.hpp.

◆ any_HAVE_CONSTEXPR_14

#define any_HAVE_CONSTEXPR_14   any_CPP14_000

Definition at line 250 of file any.hpp.

◆ any_HAVE_NODISCARD

#define any_HAVE_NODISCARD   any_CPP17_000

Definition at line 254 of file any.hpp.

◆ any_constexpr

#define any_constexpr   /*constexpr*/

Definition at line 261 of file any.hpp.

◆ any_constexpr14

#define any_constexpr14   /*constexpr*/

Definition at line 267 of file any.hpp.

◆ any_noexcept

#define any_noexcept   /*noexcept*/

Definition at line 273 of file any.hpp.

◆ any_nullptr

#define any_nullptr   NULL

Definition at line 279 of file any.hpp.

◆ any_nodiscard

#define any_nodiscard   /*[[nodiscard]]*/

Definition at line 285 of file any.hpp.