NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
backports.hpp File Reference
#include "ndn-cxx/detail/common.hpp"
#include <boost/predef/compiler/clang.h>
#include <boost/predef/compiler/gcc.h>
#include <boost/predef/compiler/visualc.h>
#include "ndn-cxx/util/nonstd/any.hpp"
#include "ndn-cxx/util/nonstd/optional.hpp"
#include "ndn-cxx/util/nonstd/variant.hpp"
#include "ndn-cxx/util/ostream-joiner.hpp"
#include <boost/lexical_cast.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.

Namespaces

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

Macros

#define NDN_CXX_HAS_CPP_ATTRIBUTE(x)   0
 
#define NDN_CXX_HAS_INCLUDE(x)   0
 
#define NDN_CXX_FALLTHROUGH   __attribute__((fallthrough))
 
#define NDN_CXX_NODISCARD
 
#define NDN_CXX_UNREACHABLE   BOOST_ASSERT(false)
 

Functions

template<typename T >
std::string ndn::to_string (const T &val)
 
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)
 
template<typename T >
constexpr std::underlying_type_t< T > ndn::to_underlying (T val) noexcept
 

Macro Definition Documentation

◆ NDN_CXX_HAS_CPP_ATTRIBUTE

#define NDN_CXX_HAS_CPP_ATTRIBUTE (   x)    0

Definition at line 35 of file backports.hpp.

◆ NDN_CXX_HAS_INCLUDE

#define NDN_CXX_HAS_INCLUDE (   x)    0

Definition at line 41 of file backports.hpp.

◆ NDN_CXX_FALLTHROUGH

#define NDN_CXX_FALLTHROUGH   __attribute__((fallthrough))

Definition at line 55 of file backports.hpp.

◆ NDN_CXX_NODISCARD

#define NDN_CXX_NODISCARD

Definition at line 69 of file backports.hpp.

◆ NDN_CXX_UNREACHABLE

#define NDN_CXX_UNREACHABLE   BOOST_ASSERT(false)

Definition at line 73 of file backports.hpp.