User profile: JLBorges

User info
User name:JLBorges
History
Joined:
Number of posts:5425
Latest posts:

Returning a template pack nested N-dimensionally in another pack
[code]#include <iostream> #include <tuple> template< typename... > struct typelist {}; template< u...

Returning a template pack nested N-dimensionally in another pack
> So I take it that finding a C++11 solution is too difficult? > One would end up having to define ...

Would it be quicker to use a binary heap to get the top x amount of integers from an array or use quick sort
[tt]std::nth_element<>()[/tt] http://en.cppreference.com/w/cpp/algorithm/nth_element

Returning a template pack nested N-dimensionally in another pack
[tt]boost::mpl[/tt] has the functionality. (Wrap it if you want a custom interface.) [code]#includ...

Function that returns the max of a variable number of scalars
[code]#include <iostream> #include <string> #include <type_traits> template < typename A, typename ...