Allocator Builder
Policy Based C++ Template Allocator Library
 All Classes Functions Variables Enumerations Enumerator Groups Pages
alb::v_100::traits::both_same_base< T1, T2 > Struct Template Reference

#include <traits.hpp>

Inherits false_type.

Detailed Description

template<class T1, class T2>
struct alb::v_100::traits::both_same_base< T1, T2 >

This traits returns true if both passed types have the same type, resp. template base type

e.g. both_same_base<stack_allocator<32>, stack_allocator<64>>::value == true

It's usage is not absolute safe, because it would mean to unroll all possible parameter combinations. But all currently available allocator should work.

Definition at line 75 of file traits.hpp.


The documentation for this struct was generated from the following file: