end
template<
typename Sequence
>
struct end
{
typedef unspecified type;
};
シーケンスの最後の次のイテレータを返す
#include "boost/mpl/begin_end.hpp"
| Parameter | Requirement | Description |
|---|---|---|
Sequence | Sequenceのモデル |
| Expression | Expression type | Precondition | Semantics | Postcondition |
|---|---|---|---|---|
typedef end<Sequence>::type last; |
Input Iteratorのモデル | last はSequenceの最後の要素のひとつ次を指すイテレータである;
アルゴリズムが特殊な型のシーケンスに特殊化されていない限り,Sequence::endと等価である. |
last は最後の次である. |
償却定数時間
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));
Iterators, Sequence, begin, size, empty