c++ Programming Glossary: my_template
How do I write an ADL-enabled trailing return type, or noexcept specification? http://stackoverflow.com/questions/7635939/how-do-i-write-an-adl-enabled-trailing-return-type-or-noexcept-specification by doing something like this template typename T void swap my_template T x my_template T y using std swap swap x.something_that_is_a_T.. like this template typename T void swap my_template T x my_template T y using std swap swap x.something_that_is_a_T y.something_that_is_a_T.. be writing something like template typename T void swap my_template T x my_template T y noexcept noexcept swap std declval T std..
C++ templates that accept only certain types http://stackoverflow.com/questions/874298/c-templates-that-accept-only-certain-types specialise it for the valid types template typename T my_template Declare but don't define int is a valid type template my_template.. Declare but don't define int is a valid type template my_template int ... All pointer types are valid template typename T my_template.. int ... All pointer types are valid template typename T my_template T ... All other types are invalid and will cause linker error..
|