Add stack::HasAllocator
To check is it possible to expose allocator.
This commit is contained in:
parent
8604ba0f1c
commit
c7433dfc5e
@ -134,6 +134,10 @@ public:
|
||||
template<typename T>
|
||||
T* Bottom() { return (T*)stack_; }
|
||||
|
||||
bool HasAllocator() const {
|
||||
return allocator_ != 0;
|
||||
}
|
||||
|
||||
Allocator& GetAllocator() {
|
||||
RAPIDJSON_ASSERT(allocator_);
|
||||
return *allocator_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user