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 <utility>
#include <cassert>
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::std11::add_const< T >
 
struct  nonstd::any_lite::std11::remove_reference< T >
 
struct  nonstd::any_lite::std11::remove_reference< T & >
 
class  nonstd::any_lite::detail::enabler
 
class  nonstd::any_lite::any
 

Namespaces

 nonstd
 
 nonstd::detail
 
 nonstd::any_lite
 
 nonstd::any_lite::std11
 
 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_CONFIG_NO_EXCEPTIONS   1
 
#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 13 of file any.hpp.

◆ any_lite_MAJOR

#define any_lite_MAJOR   0

Definition at line 15 of file any.hpp.

◆ any_lite_MINOR

#define any_lite_MINOR   1

Definition at line 16 of file any.hpp.

◆ any_lite_PATCH

#define any_lite_PATCH   0

Definition at line 17 of file any.hpp.

◆ any_lite_VERSION

Definition at line 19 of file any.hpp.

◆ any_STRINGIFY

#define any_STRINGIFY (   x)    any_STRINGIFY_( x )

Definition at line 21 of file any.hpp.

◆ any_STRINGIFY_

#define any_STRINGIFY_ (   x)    #x

Definition at line 22 of file any.hpp.

◆ any_ANY_DEFAULT

#define any_ANY_DEFAULT   0

Definition at line 26 of file any.hpp.

◆ any_ANY_NONSTD

#define any_ANY_NONSTD   1

Definition at line 27 of file any.hpp.

◆ any_ANY_STD

#define any_ANY_STD   2

Definition at line 28 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 31 of file any.hpp.

◆ any_CONFIG_NO_EXCEPTIONS

#define any_CONFIG_NO_EXCEPTIONS   1

Definition at line 40 of file any.hpp.

◆ any_CPLUSPLUS

#define any_CPLUSPLUS   __cplusplus

Definition at line 51 of file any.hpp.

◆ any_CPP98_OR_GREATER

#define any_CPP98_OR_GREATER   ( any_CPLUSPLUS >= 199711L )

Definition at line 55 of file any.hpp.

◆ any_CPP11_OR_GREATER

#define any_CPP11_OR_GREATER   ( any_CPLUSPLUS >= 201103L )

Definition at line 56 of file any.hpp.

◆ any_CPP14_OR_GREATER

#define any_CPP14_OR_GREATER   ( any_CPLUSPLUS >= 201402L )

Definition at line 57 of file any.hpp.

◆ any_CPP17_OR_GREATER

#define any_CPP17_OR_GREATER   ( any_CPLUSPLUS >= 201703L )

Definition at line 58 of file any.hpp.

◆ any_CPP20_OR_GREATER

#define any_CPP20_OR_GREATER   ( any_CPLUSPLUS >= 202000L )

Definition at line 59 of file any.hpp.

◆ any_HAVE_STD_ANY

#define any_HAVE_STD_ANY   0

Definition at line 70 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 73 of file any.hpp.

◆ nonstd_lite_HAVE_IN_PLACE_TYPES

#define nonstd_lite_HAVE_IN_PLACE_TYPES   1

Definition at line 80 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 150 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 151 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 152 of file any.hpp.

◆ nonstd_lite_in_place

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

Definition at line 154 of file any.hpp.

◆ nonstd_lite_in_place_type

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

Definition at line 155 of file any.hpp.

◆ nonstd_lite_in_place_index

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

Definition at line 156 of file any.hpp.

◆ any_COMPILER_MSVC_VER

#define any_COMPILER_MSVC_VER   0

Definition at line 202 of file any.hpp.

◆ any_COMPILER_MSVC_VERSION

#define any_COMPILER_MSVC_VERSION   0

Definition at line 203 of file any.hpp.

◆ any_COMPILER_VERSION

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

Definition at line 206 of file any.hpp.

◆ any_COMPILER_CLANG_VERSION

#define any_COMPILER_CLANG_VERSION   0

Definition at line 211 of file any.hpp.

◆ any_COMPILER_GNUC_VERSION

#define any_COMPILER_GNUC_VERSION   0

Definition at line 217 of file any.hpp.

◆ any_HAVE

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

Definition at line 225 of file any.hpp.

◆ any_HAS_CPP0X

#define any_HAS_CPP0X   0

Definition at line 230 of file any.hpp.

◆ any_CPP11_90

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

Definition at line 233 of file any.hpp.

◆ any_CPP11_100

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

Definition at line 234 of file any.hpp.

◆ any_CPP11_120

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

Definition at line 235 of file any.hpp.

◆ any_CPP11_140

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

Definition at line 236 of file any.hpp.

◆ any_CPP14_000

#define any_CPP14_000   (any_CPP14_OR_GREATER)

Definition at line 238 of file any.hpp.

◆ any_CPP17_000

#define any_CPP17_000   (any_CPP17_OR_GREATER)

Definition at line 239 of file any.hpp.

◆ any_HAVE_CONSTEXPR_11

#define any_HAVE_CONSTEXPR_11   any_CPP11_140

Definition at line 243 of file any.hpp.

◆ any_HAVE_DEFAULT_FUNCTION_TEMPLATE_ARG

#define any_HAVE_DEFAULT_FUNCTION_TEMPLATE_ARG   any_CPP11_120

Definition at line 244 of file any.hpp.

◆ any_HAVE_INITIALIZER_LIST

#define any_HAVE_INITIALIZER_LIST   any_CPP11_120

Definition at line 246 of file any.hpp.

◆ any_HAVE_NOEXCEPT

#define any_HAVE_NOEXCEPT   any_CPP11_140

Definition at line 247 of file any.hpp.

◆ any_HAVE_NULLPTR

#define any_HAVE_NULLPTR   any_CPP11_100

Definition at line 248 of file any.hpp.

◆ any_HAVE_TYPE_TRAITS

#define any_HAVE_TYPE_TRAITS   any_CPP11_90

Definition at line 249 of file any.hpp.

◆ any_HAVE_STATIC_ASSERT

#define any_HAVE_STATIC_ASSERT   any_CPP11_100

Definition at line 250 of file any.hpp.

◆ any_HAVE_ADD_CONST

#define any_HAVE_ADD_CONST   any_CPP11_90

Definition at line 251 of file any.hpp.

◆ any_HAVE_REMOVE_REFERENCE

#define any_HAVE_REMOVE_REFERENCE   any_CPP11_90

Definition at line 252 of file any.hpp.

◆ any_HAVE_TR1_ADD_CONST

#define any_HAVE_TR1_ADD_CONST   (!! any_COMPILER_GNUC_VERSION )

Definition at line 254 of file any.hpp.

◆ any_HAVE_TR1_REMOVE_REFERENCE

#define any_HAVE_TR1_REMOVE_REFERENCE   (!! any_COMPILER_GNUC_VERSION )

Definition at line 255 of file any.hpp.

◆ any_HAVE_TR1_TYPE_TRAITS

#define any_HAVE_TR1_TYPE_TRAITS   (!! any_COMPILER_GNUC_VERSION )

Definition at line 256 of file any.hpp.

◆ any_HAVE_CONSTEXPR_14

#define any_HAVE_CONSTEXPR_14   any_CPP14_000

Definition at line 260 of file any.hpp.

◆ any_HAVE_NODISCARD

#define any_HAVE_NODISCARD   any_CPP17_000

Definition at line 264 of file any.hpp.

◆ any_constexpr

#define any_constexpr   /*constexpr*/

Definition at line 271 of file any.hpp.

◆ any_constexpr14

#define any_constexpr14   /*constexpr*/

Definition at line 277 of file any.hpp.

◆ any_noexcept

#define any_noexcept   /*noexcept*/

Definition at line 283 of file any.hpp.

◆ any_nullptr

#define any_nullptr   NULL

Definition at line 289 of file any.hpp.

◆ any_nodiscard

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

Definition at line 295 of file any.hpp.