Merge commit '2abfcd02f1868bc12b5b0934101d2845c41e3cf5' into dev
This commit is contained in:
10
external/fmt/test/mock-allocator.h
vendored
10
external/fmt/test/mock-allocator.h
vendored
@@ -20,6 +20,16 @@ template <typename T> class mock_allocator {
|
||||
using value_type = T;
|
||||
using size_type = size_t;
|
||||
|
||||
using pointer = T*;
|
||||
using const_pointer = const T*;
|
||||
using reference = T&;
|
||||
using const_reference = const T&;
|
||||
using difference_type = ptrdiff_t;
|
||||
|
||||
template <typename U> struct rebind {
|
||||
using other = mock_allocator<U>;
|
||||
};
|
||||
|
||||
mock_allocator() {}
|
||||
mock_allocator(const mock_allocator&) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user