Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template integral_c

boost::proto::integral_c — A PrimitiveTransform that returns the specified integral constant.


// In header: <boost/proto/transform/integral_c.hpp>

template<typename T, T I> 
struct integral_c :  proto::transform< integral_c< T, I > > {
  // member classes/structs/unions
  template<typename Expr, typename State, typename Data> 
  struct impl :  proto::transform_impl< Expr, State, Data > {
    // types
    typedef T result_type;

    // public member functions
    T operator()(typename impl::expr_param, typename impl::state_param, 
                 typename impl::data_param) const;