NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
backports.hpp File Reference
#include "../common.hpp"
#include <boost/lexical_cast.hpp>
#include "backports-optional.hpp"
#include "backports-ostream-joiner.hpp"
Include dependency graph for backports.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 Copyright (c) 2011-2015 Regents of the University of California.


#define NDN_CXX_HAS_INCLUDE(x)   0
 Mark a type, variable, or function as deprecated. More...
#define NDN_CXX_FALLTHROUGH   ((void)0)


template<typename T , typename ... Args>
unique_ptr< T > ndn::make_unique (Args &&... args)
template<typename V >
std::string ndn::to_string (const V &v)
template<typename T , typename Compare >
constexpr const T & ndn::clamp (const T &v, const T &lo, const T &hi, Compare comp)
template<typename T >
constexpr const T & ndn::clamp (const T &v, const T &lo, const T &hi)

Macro Definition Documentation


#define NDN_CXX_HAS_CPP_ATTRIBUTE (   x)    0

Definition at line 34 of file backports.hpp.


#define NDN_CXX_HAS_INCLUDE (   x)    0

Definition at line 40 of file backports.hpp.


#define NDN_CXX_DEPRECATED_MSG (   msg)

Definition at line 50 of file backports.hpp.



Mark a type, variable, or function as deprecated.

To deprecate a type DeprecatedType:

typedef ModernType DeprecatedType NDN_CXX_DEPRECATED;

This macro can only be applied to a typedef, not directly on a class.

To deprecate a variable or class member deprecatedVar:

int deprecatedVar NDN_CXX_DEPRECATED;

To deprecate a function deprecatedFunc:

deprecatedFunc(int a, NamedEnum b)

Definition at line 75 of file backports.hpp.


#define NDN_CXX_FALLTHROUGH   ((void)0)

Definition at line 86 of file backports.hpp.

Referenced by ndn::ip::parseAddressFromString().