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
  () ;
  () ;
  (type_info_t &) ;

  // private member functions
   () ;

  // public member functions
  type_info_t & () ;
   () ;
   () ;
   () ;
   () ;
   (ctti_type_index &) ;
   (ctti_type_index &) ;

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

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. (type_info_t & data) ;

ctti_type_index private member functions

  1.  () ;

ctti_type_index public member functions

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

ctti_type_index public static functions

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

PrevUpHomeNext