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 >.
template<typename T>
class oglplus::ListOf< T >
Helper class template that can be used for static container initialization.
Usage:
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;
}
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: