Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Reference Section of Boost.Any

Header <boost/any.hpp>
Header <boost/any/bad_any_cast.hpp>
Header <boost/any/basic_any.hpp>
Header <boost/any/fwd.hpp>
Header <boost/any/unique_any.hpp>

Header <boost/any.hpp>

A class whose instances can hold instances of any type that satisfies ValueType requirements.


  class any;
   (any &, any &);
  template<typename ValueType>  (any *);
  template<typename ValueType>  (any *);
  template<typename ValueType>  (any &);
  template<typename ValueType>  (any &);
  template<typename ValueType>  (any &&);
}

  class bad_any_cast;
}

A class with customizable Small Object Optimization whose instances can hold instances of any type that satisfies ValueType requirements. Use boost::any instead if not sure.


  
    template< OptimizeForSize,  OptimizeForAlignment> class basic_any;
    template< OptimizeForSize,  OptimizeForAlignment> 
       (basic_any< , 
                basic_any< );
    template<typename ValueType,  Size,  Alignment> 
       (basic_any< );
    template<typename ValueType,  OptimizeForSize, 
              OptimizeForAlignment> 
       
      (basic_any< );
    template<typename ValueType,  OptimizeForSize, 
              OptimizeForAlignment> 
       (basic_any< );
    template<typename ValueType,  OptimizeForSize, 
              OptimizeForAlignment> 
       (basic_any< );
    template<typename ValueType,  OptimizeForSize, 
              OptimizeForAlignment> 
       (basic_any< );
  }
}

Forward declarations of Boost.Any library types.

A class whose instances can hold instances of any type (including non-copyable and non-movable types).


  
    template<typename T> struct in_place_type_t;

    class unique_any;

    in_place_type_t<  in_place_type;
     (unique_any &, unique_any &);
    template<typename T>  (unique_any *);
    template<typename T>  (unique_any *);
    template<typename T>  (unique_any &);
    template<typename T>  (unique_any &);
    template<typename T>  (unique_any &&);
  }
}

PrevUpHomeNext