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 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
 

Macros

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

Functions

template<typename T >
constexpr const T & ndn::clamp (const T &v, const T &lo, const T &hi)
 
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 std::underlying_type_t< T > ndn::to_underlying (T val) noexcept
 

Macro Definition Documentation

◆ NDN_CXX_FALLTHROUGH

#define NDN_CXX_FALLTHROUGH   __attribute__((fallthrough))

Definition at line 54 of file backports.hpp.

◆ 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_NODISCARD

#define NDN_CXX_NODISCARD

Definition at line 68 of file backports.hpp.

◆ NDN_CXX_UNREACHABLE

#define NDN_CXX_UNREACHABLE   BOOST_ASSERT(false)

Definition at line 138 of file backports.hpp.