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 <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 >
NDN_CXX_NODISCARD 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 34 of file backports.hpp.

◆ NDN_CXX_HAS_INCLUDE

#define NDN_CXX_HAS_INCLUDE (   x)    0

Definition at line 40 of file backports.hpp.

◆ NDN_CXX_FALLTHROUGH

#define NDN_CXX_FALLTHROUGH   __attribute__((fallthrough))

Definition at line 54 of file backports.hpp.

Referenced by ndn::RegexTopMatcher::fromName().

◆ NDN_CXX_NODISCARD

◆ NDN_CXX_UNREACHABLE