1 size
Joel Falcou edited this page 10 years ago

Synopsis

template <typename L>
struct size;

Description

Computes the size of any given Sequence as an Integral Constant.

Header

#include <brigand/sequences/size.hpp>

Parameters

  • L - A sequence

Example

#include <brigand/sequences/list.hpp>
#include <brigand/sequences/size.hpp>

using the_list = brigand::list<int, char, short>;
using s = size<the_list>;

static_assert( size<the_list>::value, 3);

See also

list