cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Functions
seq_.hpp File Reference

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::library
 Supplements to backports and other utilities.
 

Functions

template<typename Ty >
generate_seq_t< Ty > seq_ ()
 Shorthand to generate a sequence of elements of a given type.Example usage: More...
 

Function Documentation

◆ seq_()

generate_seq_t<Ty> cxxomfort::library::impl::seq_ ( )

Shorthand to generate a sequence of elements of a given type.Example usage:

vector<int> vec = seq_<int>(), 4, 5, 6, 7, 8, 9;
list<int> lis = seq_<int>() & -4 & -5 & -6 & -7;

Referenced by cxxomfort::library::impl::seq_().