Files
boost_mpl/include/boost/mpl/sizeof.hpp
T

37 lines
770 B
C++
Raw Normal View History

2003-03-09 23:42:58 +00:00
#ifndef BOOST_MPL_SIZEOF_HPP_INCLUDED
#define BOOST_MPL_SIZEOF_HPP_INCLUDED
2004-09-02 15:41:37 +00:00
// Copyright Aleksey Gurtovoy 2000-2003
2002-09-15 22:13:24 +00:00
//
2004-09-02 15:41:37 +00:00
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
2003-03-09 23:42:58 +00:00
//
// See http://www.boost.org/libs/mpl for documentation.
2002-09-15 22:13:24 +00:00
2004-09-02 15:41:37 +00:00
// $Source$
// $Date$
// $Revision$
#include <boost/mpl/size_t.hpp>
#include <boost/mpl/aux_/na_spec.hpp>
#include <boost/mpl/aux_/lambda_support.hpp>
2002-09-15 22:13:24 +00:00
2003-03-09 23:42:58 +00:00
namespace boost { namespace mpl {
2002-09-15 22:13:24 +00:00
2002-10-07 11:32:25 +00:00
template<
2004-09-02 15:41:37 +00:00
typename BOOST_MPL_AUX_NA_PARAM(T)
2002-10-07 11:32:25 +00:00
>
struct sizeof_
2004-09-02 15:41:37 +00:00
: mpl::size_t< sizeof(T) >
2002-10-07 11:32:25 +00:00
{
BOOST_MPL_AUX_LAMBDA_SUPPORT(1,sizeof_,(T))
};
2002-09-15 22:13:24 +00:00
2004-09-02 15:41:37 +00:00
BOOST_MPL_AUX_NA_SPEC_NO_ETI(1, sizeof_)
2002-10-07 11:32:25 +00:00
2004-09-02 15:41:37 +00:00
}}
2002-10-07 11:32:25 +00:00
#endif // BOOST_MPL_SIZEOF_HPP_INCLUDED