|
beginBoost , Chapter 1. Fusion 2.2 , Metafunctions
Возвращает тип результата<begin>.
template<typename Seq>
struct begin
{
typedef unspecified type;
};
result_of::begin<Seq>::type
Тип возврата:
Семантика: Возвращает тип итератора к первому элементу<Seq>.
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/include/begin.hpp>
typedef vector<int> vec;
typedef result_of::begin<vec>::type it;
BOOST_MPL_ASSERT((boost::is_same<result_of::deref<it>::type, int&>))
Статья begin раздела Chapter 1. Fusion 2.2 Metafunctions может быть полезна для разработчиков на c++ и boost.
:: Главная :: Metafunctions ::
|
|