Skip to content

Design Patterns

rrahn edited this page Apr 4, 2017 · 2 revisions

CRTP Curiously Recurring Template Pattern

template <typename derived_t>
struct streamable
{

};


template <template <typename ...> class ...crtp>
struct my_class : public crtp<my_class<crtp...>>...
{

};

Output parameters

http://foonathan.net/blog/2016/10/26/output-parameter.html TODO: Write me.

Clone this wiki locally