Lines Matching refs:safe_allocation
158 struct safe_allocation {
171 explicit constexpr safe_allocation() noexcept : data_(nullptr), size_(0)
175 constexpr safe_allocation(sa_detail::nullptr_t) noexcept : safe_allocation()
195 explicit safe_allocation(T* data, size_t n, adopt_memory_t) : data_(data)
213 explicit safe_allocation(size_t n, allocate_memory_t)
229 explicit safe_allocation(size_t n, allocate_memory_zero_t)
246 safe_allocation(safe_allocation const&) = delete;
247 safe_allocation& operator=(safe_allocation const&) = delete;
258 safe_allocation(safe_allocation&& other) noexcept : data_(other.data_), size_(other.size_)
268 safe_allocation&
291 safe_allocation&
292 operator=(safe_allocation&& other)
317 ~safe_allocation()
437 swap(safe_allocation& a, safe_allocation& b) noexcept
461 operator==(safe_allocation<T, A, P> const& x, sa_detail::nullptr_t)
468 operator!=(safe_allocation<T, A, P> const& x, sa_detail::nullptr_t)
475 operator==(sa_detail::nullptr_t, safe_allocation<T, A, P> const& x)
482 operator!=(sa_detail::nullptr_t, safe_allocation<T, A, P> const& x)