Searched refs:SecureAllocator (Results 1 – 5 of 5) sorted by relevance
54 class BRILLO_PRIVATE SecureAllocator : public std::allocator<T> {62 SecureAllocator() noexcept : std::allocator<T>() {} in SecureAllocator() function63 SecureAllocator(const SecureAllocator& other) noexcept in SecureAllocator() function67 SecureAllocator(const SecureAllocator<U>& other) noexcept in SecureAllocator() function71 typedef SecureAllocator<U> other;232 const typename SecureAllocator<T>::size_type SecureAllocator<T>::page_size_ =233 SecureAllocator<T>::CalculatePageSize();236 const typename SecureAllocator<T>::size_type SecureAllocator<T>::max_size_ =237 SecureAllocator<T>::GetMaxSizeForType(SecureAllocator<T>::page_size_);
233 class TestSecureAllocator : public SecureAllocator<T> {235 using typename SecureAllocator<T>::pointer;236 using typename SecureAllocator<T>::size_type;237 using typename SecureAllocator<T>::value_type;243 SecureAllocator<T>::clear_contents(p, n); in clear_contents()255 TEST(SecureAllocator, ErasureOnDeallocation) { in TEST() argument268 TEST(SecureAllocator, MultiPageCorrectness) { in TEST() argument
15 template <typename T> class SecureAllocator {69 SecureAllocator() {} in SecureAllocator() function70 template <typename U> SecureAllocator(const SecureAllocator<U>&) {} in SecureAllocator() function71 template <typename U> struct rebind { using other = SecureAllocator<U>; };75 bool operator==(const SecureAllocator<T>&, const SecureAllocator<U>&) {80 bool operator!=(const SecureAllocator<T>&, const SecureAllocator<U>&) {
130 typename std::conditional<JSONCPP_USING_SECURE_MEMORY, SecureAllocator<T>,
131 typename std::conditional<JSONCPP_USING_SECURE_MEMORY, SecureAllocator<T>,