Skip to content
Joel Falcou edited this page Jun 24, 2015 · 1 revision

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

Clone this wiki locally