1 .. Iterators/Iterator Metafunctions//deref |50
16 typedef |unspecified| type;
24 Dereferences an iterator.
32 #include <boost/mpl/deref.hpp>
39 +---------------+---------------------------+-----------------------------------+
40 | Parameter | Requirement | Description |
41 +===============+===========================+===================================+
42 | ``Iterator`` | |Forward Iterator| | The iterator to dereference. |
43 +---------------+---------------------------+-----------------------------------+
49 For any |Forward Iterator|\ s ``iter``:
54 typedef deref<iter>::type t;
60 ``iter`` is dereferenceable.
63 ``t`` is identical to the element referenced by ``iter``. If ``iter`` is
64 a user-defined iterator, the library-provided default implementation is
77 Amortized constant time.
85 typedef vector<char,short,int,long> types;
86 typedef begin<types>::type iter;
88 BOOST_MPL_ASSERT(( is_same< deref<iter>::type, char > ));
94 |Iterators|, |begin| / |end|, |next|
97 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
98 Distributed under the Boost Software License, Version 1.0. (See accompanying
99 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)