¡@

Home 

c++ Programming Glossary: foo_impl

(Im)perfect forwarding with variadic templates

http://stackoverflow.com/questions/13296461/imperfect-forwarding-with-variadic-templates

type foo T x impl std forward T x std cout uref std endl foo_impl impl This restriction of the universal reference is useful because.. the constructor has the moral effects of constructing a foo_impl from Args it seems natural to express the constraints on those.. template typename... Args EnableIf std is_constructible foo_impl Args... ... foo Args ... args Benefit This is now officially..

Can c++11 parameter packs be used outside templates?

http://stackoverflow.com/questions/20407753/can-c11-parameter-packs-be-used-outside-templates

works just fine and looks cleaner like so void foo_impl initializer_list int ints for int i ints cout i endl template.. endl template typename... Args void foo int f Args... args foo_impl f args... struct x ostream operator ostream o x o x return o..