¡@

Home 

c++ Programming Glossary: is_cont

is_container trait fails on std::set SFINAE issue

http://stackoverflow.com/questions/9242209/is-container-trait-fails-on-stdset-sfinae-issue

trait fails on std set SFINAE issue I am trying to write.. set #include deque template typename Container struct is_container typedef char no typedef long yes template typename A A.. A A A struct is_of_type template typename T static yes is_cont is_of_type typename T iterator T T begin T end template..

Determine if a type is an STL container at compile time

http://stackoverflow.com/questions/9407367/determine-if-a-type-is-an-stl-container-at-compile-time

at compile time. I've got the following bit of code struct is_cont struct not_cont template typename T struct is_cont typedef not_cont.. struct is_cont struct not_cont template typename T struct is_cont typedef not_cont result_t but I'm not sure how to create the.. is false in the default case template typename T struct is_cont static const bool value false Then you will define partial specializations..