¡@

Home 

c++ Programming Glossary: has_reserve_method

Checking a member exists, possibly in a base class, C++11 version

http://stackoverflow.com/questions/9530928/checking-a-member-exists-possibly-in-a-base-class-c11-version

final prevents. OTOH this one template typename C struct has_reserve_method private struct No struct Yes No no 2 template typename T typename.. or is not accessible template typename T constexpr auto has_reserve_method T t decltype t.reserve 0 bool return true Used as fallback when.. when SFINAE culls the template method constexpr bool has_reserve_method ... return false You can then use this in a class for example..