blob: fc8acf16dcdea5adc69a2031a37d8de8f7973816 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <bits/uses_allocator.h>
#include <vector>
#include <experimental/utility>
#include <memory>
using std::vector;
using std::allocator;
using std::uses_allocator;
struct A {
using allocator_type = std::experimental::erased_type;
};
void test01() {
static_assert(uses_allocator<vector<int>, allocator<int>>());
static_assert(uses_allocator<A, allocator<A>>());
}
int main() {
test01();
return 0;
}
|