ndn::tlv::detail Namespace Reference

Classes

class  ReadNumber
 
class  ReadNumberFast
 Function object to read a number from ContiguousIterator. More...
 
class  ReadNumberSlow
 Function object to read a number from InputIterator. More...
 

Functions

template<typename Iterator , typename DecayedIterator = std::decay_t<Iterator>, typename ValueType = typename std::iterator_traits<DecayedIterator>::value_type>
constexpr bool shouldSelectContiguousReadNumber ()
 Determine whether to select ReadNumber implementation for ContiguousIterator. More...
 

Function Documentation

◆ shouldSelectContiguousReadNumber()

template<typename Iterator , typename DecayedIterator = std::decay_t<Iterator>, typename ValueType = typename std::iterator_traits<DecayedIterator>::value_type>
constexpr bool ndn::tlv::detail::shouldSelectContiguousReadNumber ( )
constexpr

Determine whether to select ReadNumber implementation for ContiguousIterator.

This is not a full ContiguousIterator detection implementation. It returns true for the most common ContiguousIterator types used with TLV decoding function templates.

Definition at line 358 of file tlv.hpp.