[Home]end

Synopsis

template<
      typename Sequence
    >
struct end
{
    typedef unspecified type;
};

Description

シーケンスの最後の次のイテレータを返す

Definition

#include "boost/mpl/begin_end.hpp"

Parameters

 Parameter  Requirement  Description  
SequenceSequenceのモデル

Expression semantics

 Expression  Expression type  Precondition  Semantics  Postcondition  
typedef end<Sequence>::type last; Input Iteratorのモデル lastSequenceの最後の要素のひとつ次を指すイテレータである; アルゴリズムが特殊な型のシーケンスに特殊化されていない限り,Sequence::endと等価である. last は最後の次である.

Complexity

償却定数時間

Example

typedef list<long> short_list;
typedef begin<short_list>::type first;
typedef end<short_list>::type last;
BOOST_STATIC_ASSERT((boost::is_same<first::next,last>::value));

See also

Iterators, Sequence, begin, size, empty


Table of Contents
Last edited July 22, 2002 4:30 pm