'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class template is_tlv_type

odtone::mih::is_tlv_type

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/tlv.hpp>

template<typename T> 
class is_tlv_type {
public:
  // member classes/structs/unions

  class false_t {
  };

  // private static functions
  template<typename U> static true_t test(typename U::tlv_type * = 0);
  template<typename U> static false_t test(...);

  // public data members
  static const bool value;
};

Description

This class allows to check if a given class is a TLV. It has only a boolean value that is true when the given class is a TLV, or false otherwise.

is_tlv_type private static functions

  1. template<typename U> static true_t test(typename U::tlv_type * = 0);
  2. template<typename U> static false_t test(...);

PrevUpHomeNext