Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class ctti_type_index

boost::typeindex::ctti_type_index

Synopsis

// In header: <boost/type_index/ctti_type_index.hpp>


class ctti_type_index {
public:
  // types
  typedef  ;

  // construct/copy/destruct
  () ;
  () ;
  () ;

  // private member functions
   () ;

  // public member functions
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;

  // public static functions
  template<typename T>  () ;
  template<typename T>  () ;
  template<typename T> 
     () ;
};

Description

This class is a wrapper that pretends to work exactly like stl_type_index, but does not require RTTI support. For description of functions see type_index_facade.

This class on C++14 compatible compilers has following functions marked as constexpr:

  • default constructor

  • copy constructors and assignemnt operations

  • class methods: name(), before(const ctti_type_index& rhs), equal(const ctti_type_index& rhs)

  • static methods type_id<T>(), type_id_with_cvr<T>()

  • comparison operators

This class produces slightly longer type names, so consider using stl_type_index in situations when typeid() is working.

ctti_type_index public construct/copy/destruct

  1. ( data) ;
  2. () ;
  3. ( data) ;

ctti_type_index private member functions

  1.  () ;

ctti_type_index public member functions

  1.  () ;
  2.  () ;
  3.  () ;
  4.  () ;
  5.  () ;
  6.  ( rhs) ;
  7.  ( rhs) ;

ctti_type_index public static functions

  1. template<typename T>  () ;
  2. template<typename T>  () ;
  3. template<typename T> 
       ( variable) ;

PrevUpHomeNext