Home
last modified time | relevance | path

Searched refs:alloc_ (Results 1 – 25 of 29) sorted by relevance

12

/third_party/boost/boost/fiber/future/detail/
Dtask_object.hpp47 alloc_{ alloc } {
53 alloc_{ alloc } {
80 typename traity_type::pointer ptr{ traity_type::allocate( alloc_, 1) }; in reset()
83 traity_type::construct( alloc_, p, alloc_, std::move( fn_) ); in reset()
85 traity_type::deallocate( alloc_, ptr, 1); in reset()
93 destroy_( alloc_, this); in deallocate_future()
98 allocator_type alloc_; member in boost::fibers::detail::task_object
122 alloc_{ alloc } {
128 alloc_{ alloc } {
154 typename traity_type::pointer ptr{ traity_type::allocate( alloc_, 1) }; in reset()
[all …]
Dshared_state_object.hpp34 alloc_{ alloc } {
39 destroy_( alloc_, this); in deallocate_future()
43 allocator_type alloc_; member in boost::fibers::detail::shared_state_object
/third_party/abseil-cpp/absl/container/internal/
Dcommon.h67 alloc_ = other.alloc_;
74 bool empty() const noexcept { return !alloc_; }
76 allocator_type get_allocator() const { return *alloc_; }
83 : alloc_(a) {
89 : alloc_(a) {
101 assert(alloc_.has_value());
102 alloc_ = absl::nullopt;
109 allocator_type* alloc() { return std::addressof(*alloc_); }
112 absl::optional<allocator_type> alloc_ = {};
Dcontainer_memory_test.cc99 Alloc* alloc() { return &alloc_; } in alloc()
102 Alloc alloc_; member in absl::container_internal::__anon6d66060e0111::Fixture
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dcommon.h67 alloc_ = other.alloc_;
74 bool empty() const noexcept { return !alloc_; }
76 allocator_type get_allocator() const { return *alloc_; }
83 : alloc_(a) {
89 : alloc_(a) {
101 assert(alloc_.has_value());
102 alloc_ = absl::nullopt;
109 allocator_type* alloc() { return std::addressof(*alloc_); }
112 absl::optional<allocator_type> alloc_ = {};
Dcontainer_memory_test.cc99 Alloc* alloc() { return &alloc_; } in alloc()
102 Alloc alloc_; member in absl::container_internal::__anona918a5830111::Fixture
/third_party/boost/boost/thread/detail/
Dmemory.hpp34 _Alloc alloc_; member in boost::thread_detail::allocator_destructor
38 : alloc_(a), s_(s) in allocator_destructor()
42 alloc_traits::destroy(alloc_, p); in operator ()()
43 alloc_traits::deallocate(alloc_, p, s_); in operator ()()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dallocator.h139 explicit MemGuard(allocator a) : n_(0), alloc_(a) {} in MemGuard()
144 …MemGuard(MemGuard &&lhs) noexcept : n_(lhs.n_), alloc_(std::move(lhs.alloc_)), ptr_(std::move(lhs.… in MemGuard()
149 alloc_ = std::move(lhs.alloc_);
168 return MakeUnique(&ptr_, alloc_, n, std::forward<Args>(args)...); in allocate()
191 allocator alloc_; variable
Dbtree.h167 explicit BaseNode(const value_allocator &alloc) : alloc_(alloc) {} in BaseNode()
173 value_allocator alloc_; variable
303 value_allocator alloc_; variable
318 typename LeafNode::alloc_type alloc(alloc_); in Init()
326 root_ = new (p) LeafNode(alloc_); in Init()
Dbtree_impl.tpp25 slot_allocator alloc(this->alloc_);
117 slot_allocator alloc(this->alloc_);
220 typename InnerNode::alloc_type alloc(alloc_);
229 *p = new (ptr) InnerNode(alloc_);
241 typename LeafNode::alloc_type alloc(this->alloc_);
250 *p = new (ptr) LeafNode(alloc_);
423 …: alloc_(alloc), leaf_nodes_(&LeafNode::link_), all_(&BaseNode::lru_), root_(nullptr), acquire_loc…
437 typename LeafNode::alloc_type alloc(alloc_);
442 typename InnerNode::alloc_type alloc(alloc_);
/third_party/boost/boost/numeric/ublas/
Dstorage_sparse.hpp240 alloc_(a), capacity_ (0), size_ (0) { in map_array()
245 alloc_ (c.alloc_), capacity_ (c.size_), size_ (c.size_) { in map_array()
247 data_ = alloc_.allocate (capacity_); in map_array()
258 alloc_.deallocate (data_, capacity_); in ~map_array()
270 pointer data = alloc_.allocate (capacity); in resize()
276 alloc_.deallocate (data_, capacity_); in resize()
294 data = alloc_.allocate (capacity); in reserve()
303 alloc_.deallocate (data_, capacity_); in reserve()
503 return alloc_; in get_allocator()
523 ALLOC alloc_; member in boost::numeric::ublas::map_array
Dstorage.hpp61 alloc_ (a), size_ (0) { in unbounded_array()
66 alloc_(a), size_ (size) { in unbounded_array()
68 data_ = alloc_.allocate (size_); in unbounded_array()
79 alloc_.construct(d, value_type()); in unbounded_array()
88 alloc_ (a), size_ (size) { in unbounded_array()
90 data_ = alloc_.allocate (size_); in unbounded_array()
99 alloc_ (c.alloc_), size_ (c.size_) { in unbounded_array()
101 data_ = alloc_.allocate (size_); in unbounded_array()
111 alloc_ (std::move(c.alloc_)), size_ (c.size_), data_(c.data_) in unbounded_array()
135 alloc_.deallocate (data_, size_); in ~unbounded_array()
[all …]
/third_party/mindspore/mindspore/lite/src/train/
Dopt_allocator.cc80 alloc_[addr] = size; in Malloc()
85 arena_[addr] = alloc_[addr]; in Free()
86 alloc_.erase(addr); in Free()
Dopt_allocator.h36 std::map<size_t, size_t> alloc_; variable
/third_party/boost/boost/format/
Dalt_sstream_impl.hpp41 void *vd_ptr = boost::allocator_allocate(alloc_, sz, is_allocated_? eback() : 0); in str()
44 Ch *new_ptr = boost::allocator_allocate(alloc_, sz, is_allocated_? eback() : 0); in str()
258 … void *vdptr = boost::allocator_allocate(alloc_, new_size, is_allocated_? oldptr : 0); in overflow()
261 newptr = boost::allocator_allocate(alloc_, new_size, is_allocated_? oldptr : 0); in overflow()
268 alloc_.deallocate(oldptr, prev_size); in overflow()
302 alloc_.deallocate(eback(), (pptr() != NULL ? epptr() : egptr()) - eback()); in dealloc()
Dalt_sstream.hpp116 compat_allocator_type alloc_; // the allocator object member in boost::io::basic_altstringbuf
/third_party/boost/libs/beast/example/http/server/fast/
Dhttp_server_fast.cpp107 alloc_t alloc_{8192}; member in http_worker
170 std::make_tuple(alloc_)); in read_request()
210 std::make_tuple(alloc_)); in send_bad_response()
266 std::make_tuple(alloc_)); in send_file()
/third_party/boost/boost/heap/detail/
Dheap_node.hpp138 alloc_(alloc) in node_disposer()
144 n->clear_subtree(alloc_); in operator ()()
146 alloc_.deallocate(n, 1); in operator ()()
149 Alloc & alloc_; member
/third_party/boost/boost/unordered/
Dunordered_set.hpp1967 boost::unordered::detail::optional<value_allocator> alloc_; member in boost::unordered::node_handle_set
1970 : ptr_(ptr), alloc_(a) in node_handle_set()
1983 node_allocator node_alloc(*alloc_); in ~node_handle_set()
1991 alloc_(boost::move(n.alloc_)) in node_handle_set()
1998 BOOST_ASSERT(!alloc_.has_value() || in operator =()
2001 (n.alloc_.has_value() && alloc_ == n.alloc_)); in operator =()
2004 node_allocator node_alloc(*alloc_); in operator =()
2010 if (!alloc_.has_value() || in operator =()
2013 alloc_ = boost::move(n.alloc_); in operator =()
2023 allocator_type get_allocator() const { return *alloc_; } in get_allocator()
[all …]
Dunordered_map.hpp2453 boost::unordered::detail::optional<value_allocator> alloc_; member in boost::unordered::node_handle_map
2456 : ptr_(ptr), alloc_(a) in node_handle_map()
2461 BOOST_CONSTEXPR node_handle_map() BOOST_NOEXCEPT : ptr_(), alloc_() {} in node_handle_map()
2466 node_allocator node_alloc(*alloc_); in ~node_handle_map()
2474 alloc_(boost::move(n.alloc_)) in node_handle_map()
2481 BOOST_ASSERT(!alloc_.has_value() || in operator =()
2484 (n.alloc_.has_value() && alloc_ == n.alloc_)); in operator =()
2487 node_allocator node_alloc(*alloc_); in operator =()
2493 if (!alloc_.has_value() || in operator =()
2496 alloc_ = boost::move(n.alloc_); in operator =()
[all …]
/third_party/protobuf/src/google/protobuf/
Dmap.h397 alloc_(arena) {
629 if (alloc_.arena() == nullptr) {
634 alloc_.arena(), k);
635 Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena());
904 Arena::Create<Tree>(alloc_.arena(), typename Tree::key_compare(),
905 typename Tree::allocator_type(alloc_));
966 return alloc_type(alloc_).allocate(n);
973 alloc_type(alloc_).deallocate(t, n);
977 if (alloc_.arena() == nullptr) {
983 if (alloc_.arena() == nullptr) {
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/
DvktDescriptorSetsIndexingTests.hpp78 AllocMv& alloc_,
112 AllocMv& alloc_) in BufferHandleAlloc()
114 , alloc (alloc_) {} in BufferHandleAlloc()
DvktDescriptorSetsIndexingTestsUtils.cpp62 AllocMv& alloc_, in ImageHandleAlloc() argument
67 , alloc (alloc_) in ImageHandleAlloc()
/third_party/node/src/
Dnode_zlib.cc203 brotli_alloc_func alloc_ = nullptr; member in node::__anon304b32780111::BrotliContext
1139 alloc_ = alloc; in Init()
1153 return Init(alloc_, free_, alloc_opaque_); in ResetStream()
1204 alloc_ = alloc; in Init()
1218 return Init(alloc_, free_, alloc_opaque_); in ResetStream()
/third_party/boost/boost/unordered/detail/
Dimplementation.hpp1943 node_allocator& alloc_; member
1946 node_constructor(node_allocator& n) : alloc_(n), node_() {} in node_constructor()
1966 node_allocator_traits, alloc_, node_->value_ptr()); in reclaim()
1978 node_allocator_traits::deallocate(alloc_, node_, 1); in ~node_constructor()
1985 node_ = node_allocator_traits::allocate(alloc_, 1); in create_node()
1996 NodeAlloc& alloc_; member
1999 explicit node_tmp(node_pointer n, NodeAlloc& a) : alloc_(a), node_(n) {} in node_tmp()
2016 node_allocator_traits, alloc_, node_->value_ptr()); in ~node_tmp()
2018 node_allocator_traits::deallocate(alloc_, node_, 1); in ~node_tmp()
2521 constructor_.alloc_, constructor_.node_->value_ptr(), v); in copy_of()
[all …]

12