OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ListOf< T > Class Template Reference

Helper class template that can be used for static container initialization. More...

#include </home/chochlik/devel/oglplus/include/oglplus/opt/list_init.hpp>

Inherits oglplus::aux::ListInitializer< T, 0 >.

Detailed Description

template<typename T>
class oglplus::ListOf< T >

Helper class template that can be used for static container initialization.

Usage:

// creates a standard RandomAccessContainer of std::strings
// containing the values "A", "B", "C", "D", "E"
auto list = ListOf<std::string>("A")("B")("C")("D")("E").Get();
for(auto i=list.begin(), e=list.end(); i!=e; ++i)
{
std::cout << *i << std::endl;
}
// creates a vector of doubles
std::vector<double> v = ListOf<double>(1)(2)(3)(4)(5)(6).As<std::vector<double>>();
See Also
List()

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

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).