NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
any-lite.hpp File Reference
#include <cstddef>
#include <utility>
#include <cassert>
Include dependency graph for any-lite.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   4
 
#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_HAVE_TWEAK_HEADER   0
 
#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_OVERRIDE   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]]*/
 
#define any_override   /*override*/
 

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-lite.hpp.

◆ any_lite_MAJOR

#define any_lite_MAJOR   0

Definition at line 14 of file any-lite.hpp.

◆ any_lite_MINOR

#define any_lite_MINOR   4

Definition at line 15 of file any-lite.hpp.

◆ any_lite_PATCH

#define any_lite_PATCH   0

Definition at line 16 of file any-lite.hpp.

◆ any_lite_VERSION

Definition at line 18 of file any-lite.hpp.

◆ any_STRINGIFY

#define any_STRINGIFY (   x)    any_STRINGIFY_( x )

Definition at line 20 of file any-lite.hpp.

◆ any_STRINGIFY_

#define any_STRINGIFY_ (   x)    #x

Definition at line 21 of file any-lite.hpp.

◆ any_ANY_DEFAULT

#define any_ANY_DEFAULT   0

Definition at line 25 of file any-lite.hpp.

◆ any_ANY_NONSTD

#define any_ANY_NONSTD   1

Definition at line 26 of file any-lite.hpp.

◆ any_ANY_STD

#define any_ANY_STD   2

Definition at line 27 of file any-lite.hpp.

◆ any_HAVE_TWEAK_HEADER

#define any_HAVE_TWEAK_HEADER   0

Definition at line 37 of file any-lite.hpp.

◆ any_CONFIG_SELECT_ANY

#define any_CONFIG_SELECT_ANY   ( any_HAVE_STD_ANY ? any_ANY_STD : any_ANY_NONSTD )

Definition at line 44 of file any-lite.hpp.

◆ any_CONFIG_NO_EXCEPTIONS

#define any_CONFIG_NO_EXCEPTIONS   1

Definition at line 56 of file any-lite.hpp.

◆ any_CPLUSPLUS

#define any_CPLUSPLUS   __cplusplus

Definition at line 67 of file any-lite.hpp.

◆ any_CPP98_OR_GREATER

#define any_CPP98_OR_GREATER   ( any_CPLUSPLUS >= 199711L )

Definition at line 71 of file any-lite.hpp.

◆ any_CPP11_OR_GREATER

#define any_CPP11_OR_GREATER   ( any_CPLUSPLUS >= 201103L )

Definition at line 72 of file any-lite.hpp.

◆ any_CPP14_OR_GREATER

#define any_CPP14_OR_GREATER   ( any_CPLUSPLUS >= 201402L )

Definition at line 73 of file any-lite.hpp.

◆ any_CPP17_OR_GREATER

#define any_CPP17_OR_GREATER   ( any_CPLUSPLUS >= 201703L )

Definition at line 74 of file any-lite.hpp.

◆ any_CPP20_OR_GREATER

#define any_CPP20_OR_GREATER   ( any_CPLUSPLUS >= 202000L )

Definition at line 75 of file any-lite.hpp.

◆ any_HAVE_STD_ANY

#define any_HAVE_STD_ANY   0

Definition at line 86 of file any-lite.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 89 of file any-lite.hpp.

◆ nonstd_lite_HAVE_IN_PLACE_TYPES

#define nonstd_lite_HAVE_IN_PLACE_TYPES   1

Definition at line 96 of file any-lite.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 166 of file any-lite.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 167 of file any-lite.hpp.

Referenced by nonstd::any_lite::any::any().

◆ 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 168 of file any-lite.hpp.

◆ nonstd_lite_in_place

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

Definition at line 170 of file any-lite.hpp.

◆ nonstd_lite_in_place_type

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

Definition at line 171 of file any-lite.hpp.

Referenced by nonstd::any_lite::swap().

◆ nonstd_lite_in_place_index

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

Definition at line 172 of file any-lite.hpp.

◆ any_COMPILER_MSVC_VER

#define any_COMPILER_MSVC_VER   0

Definition at line 219 of file any-lite.hpp.

◆ any_COMPILER_MSVC_VERSION

#define any_COMPILER_MSVC_VERSION   0

Definition at line 220 of file any-lite.hpp.

◆ any_COMPILER_VERSION

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

Definition at line 223 of file any-lite.hpp.

◆ any_COMPILER_CLANG_VERSION

#define any_COMPILER_CLANG_VERSION   0

Definition at line 228 of file any-lite.hpp.

◆ any_COMPILER_GNUC_VERSION

#define any_COMPILER_GNUC_VERSION   0

Definition at line 234 of file any-lite.hpp.

◆ any_HAVE

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

Definition at line 242 of file any-lite.hpp.

◆ any_HAS_CPP0X

#define any_HAS_CPP0X   0

Definition at line 247 of file any-lite.hpp.

◆ any_CPP11_90

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

Definition at line 250 of file any-lite.hpp.

◆ any_CPP11_100

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

Definition at line 251 of file any-lite.hpp.

◆ any_CPP11_120

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

Definition at line 252 of file any-lite.hpp.

◆ any_CPP11_140

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

Definition at line 253 of file any-lite.hpp.

◆ any_CPP14_000

#define any_CPP14_000   (any_CPP14_OR_GREATER)

Definition at line 255 of file any-lite.hpp.

◆ any_CPP17_000

#define any_CPP17_000   (any_CPP17_OR_GREATER)

Definition at line 256 of file any-lite.hpp.

◆ any_HAVE_CONSTEXPR_11

#define any_HAVE_CONSTEXPR_11   any_CPP11_140

Definition at line 260 of file any-lite.hpp.

◆ any_HAVE_DEFAULT_FUNCTION_TEMPLATE_ARG

#define any_HAVE_DEFAULT_FUNCTION_TEMPLATE_ARG   any_CPP11_120

Definition at line 261 of file any-lite.hpp.

◆ any_HAVE_INITIALIZER_LIST

#define any_HAVE_INITIALIZER_LIST   any_CPP11_120

Definition at line 263 of file any-lite.hpp.

◆ any_HAVE_NOEXCEPT

#define any_HAVE_NOEXCEPT   any_CPP11_140

Definition at line 264 of file any-lite.hpp.

◆ any_HAVE_NULLPTR

#define any_HAVE_NULLPTR   any_CPP11_100

Definition at line 265 of file any-lite.hpp.

◆ any_HAVE_TYPE_TRAITS

#define any_HAVE_TYPE_TRAITS   any_CPP11_90

Definition at line 266 of file any-lite.hpp.

◆ any_HAVE_STATIC_ASSERT

#define any_HAVE_STATIC_ASSERT   any_CPP11_100

Definition at line 267 of file any-lite.hpp.

◆ any_HAVE_ADD_CONST

#define any_HAVE_ADD_CONST   any_CPP11_90

Definition at line 268 of file any-lite.hpp.

◆ any_HAVE_OVERRIDE

#define any_HAVE_OVERRIDE   any_CPP11_90

Definition at line 269 of file any-lite.hpp.

◆ any_HAVE_REMOVE_REFERENCE

#define any_HAVE_REMOVE_REFERENCE   any_CPP11_90

Definition at line 270 of file any-lite.hpp.

◆ any_HAVE_TR1_ADD_CONST

#define any_HAVE_TR1_ADD_CONST   (!! any_COMPILER_GNUC_VERSION )

Definition at line 272 of file any-lite.hpp.

◆ any_HAVE_TR1_REMOVE_REFERENCE

#define any_HAVE_TR1_REMOVE_REFERENCE   (!! any_COMPILER_GNUC_VERSION )

Definition at line 273 of file any-lite.hpp.

◆ any_HAVE_TR1_TYPE_TRAITS

#define any_HAVE_TR1_TYPE_TRAITS   (!! any_COMPILER_GNUC_VERSION )

Definition at line 274 of file any-lite.hpp.

◆ any_HAVE_CONSTEXPR_14

#define any_HAVE_CONSTEXPR_14   any_CPP14_000

Definition at line 278 of file any-lite.hpp.

◆ any_HAVE_NODISCARD

#define any_HAVE_NODISCARD   any_CPP17_000

Definition at line 282 of file any-lite.hpp.

◆ any_constexpr

#define any_constexpr   /*constexpr*/

Definition at line 289 of file any-lite.hpp.

◆ any_constexpr14

#define any_constexpr14   /*constexpr*/

Definition at line 295 of file any-lite.hpp.

◆ any_noexcept

#define any_noexcept   /*noexcept*/

Definition at line 301 of file any-lite.hpp.

Referenced by nonstd::any_lite::any::any(), and nonstd::any_lite::any::operator=().

◆ any_nullptr

◆ any_nodiscard

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

Definition at line 313 of file any-lite.hpp.

Referenced by nonstd::any_lite::any_cast().

◆ any_override

#define any_override   /*override*/

Definition at line 319 of file any-lite.hpp.

Referenced by nonstd::any_lite::any::to_ptr().