Mirror reflection library 0.5.13

mirror::mp::at_c< Range, Index > Struct Template Reference

Returns the element of the range passed as argument at the given Index. More...

#include <mirror/meta_prog/range.hpp>

List of all members.

Public Types

typedef unspecified_type type
 The type in the range passed as argument at the specified position.

Detailed Description

template<typename Range, int Index>
struct mirror::mp::at_c< Range, Index >

Returns the element of the range passed as argument at the given Index.

This operation may be invoked only on non-empty ranges.

Template Parameters:
Rangethe range item of which is to be returned
Indexcompile-time integral constant value index of the element to be retrieved
See also:
range
empty
front
at
Examples:

mirror/example/various_04.cpp.


The documentation for this struct was generated from the following file:

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.