Home
last modified time | relevance | path

Searched refs:construct_at (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx2a-constexpr-dynalloc.cpp110 constexpr void construct_at(void *p, Args &&...args) { in construct_at() function
117 std::construct_at<int>(p, 1); in call_std_construct_at()
118 std::construct_at<int>(p + 1, 2); in call_std_construct_at()
119 std::construct_at<int>(p + 2, 3); in call_std_construct_at()
153 std::construct_at<int>(&u.b, 2); in change_union_member()
170 std::construct_at<int>(p); // expected-note {{in call}} in construct_after_lifetime()
179 std::construct_at<A::B>(&a.b); // expected-note {{in call}} in construct_after_lifetime_2()
192 std::construct_at<A>(p); in f()
200 std::construct_at<A>(p); in g()
209 std::construct_at<A>(p); in h()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.construct/
H A Dranges_construct_at.pass.cpp31 LIBCPP_STATIC_ASSERT(std::is_class_v<decltype(std::ranges::construct_at)>);
45 ASSERT_SAME_TYPE(decltype(std::ranges::construct_at((int*)nullptr)), int*);
46 ASSERT_SAME_TYPE(decltype(std::ranges::construct_at((Foo*)nullptr)), Foo*);
61 int* result = std::ranges::construct_at(&x); in test()
70 int* result = std::ranges::construct_at(&x, 42); in test()
79 Foo* result = std::ranges::construct_at(std::addressof(f), 42, 123); in test()
91 Counted* result = std::ranges::construct_at(out, count); in test()
95 result = std::ranges::construct_at(out + 1, count); in test()
108 const int* result = std::ranges::construct_at(ptr, 42); in test()
117 requires requires { std::ranges::construct_at(decltype(args)(args)...); } in can_construct_at()
H A Dconstruct_at.pass.cpp47 int* res = std::construct_at(&i); in test()
54 int* res = std::construct_at(&i, 42); in test()
62 Foo* res = std::construct_at(&foo, 42, 'x', 123.89, &count); in test()
72 std::construct_at(p, count); in test()
74 std::construct_at(p+1, count); in test()
87 std::construct_at(p, count); in test()
89 std::construct_at(p+1, count); in test()
101 template <class ...Args, class = decltype(std::construct_at(std::declval<Args>()...))>
/llvm-project-15.0.7/libcxx/include/__memory/
H A Dranges_construct_at.h45 return _VSTD::construct_at(__location, _VSTD::forward<_Args>(__args)...); in operator()
52 inline constexpr auto construct_at = __construct_at::__fn{};
H A Dconstruct_at.h33 _LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) { in construct_at() function
43 return std::construct_at(__location, std::forward<_Args>(__args)...); in __construct_at()
H A Dallocator_traits.h298 _VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
/llvm-project-15.0.7/libcxx/include/__ranges/
H A Dcopyable_box.h149 std::construct_at(std::addressof(__val_), __other.__val_);
159 std::construct_at(std::addressof(__val_), std::move(__other.__val_));
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.members/
H A Dconstruct.pass.cpp47 std::construct_at(p, std::forward<Args>(args)...); in construct()
/llvm-project-15.0.7/libcxx/test/support/
H A Dtest_allocator.h170 std::construct_at(std::to_address(p), std::forward<U>(val)); in construct()
408 std::construct_at(p, Ctor_Tag{}, std::forward<Args>(args)...); in construct()
/llvm-project-15.0.7/libcxx/test/std/library/description/conventions/customization.point.object/
H A Dniebloid.compile.pass.cpp153 static_assert(test(std::ranges::construct_at, a, 42));
/llvm-project-15.0.7/libcxx/docs/Status/
H A DRangesAlgorithms.csv100 Uninitialised memory,construct_at,Konstantin Varlamov,`D116078 <https://llvm.org/D116078>`_,✅
H A DRangesPaper.csv31 | `ranges::construct_at <https://llvm.org/D116078>`_
H A DCxx20Issues.csv246 …3321>`__","``uninitialized_construct_using_allocator``\ should use ``construct_at``\ ","Prague","…
/llvm-project-15.0.7/libcxx/include/
H A Dmemory255 constexpr T* construct_at(T* location, Args&& ...args); // since C++20
259 constexpr T* construct_at(T* location, Args&&... args); // since C++20
855 #include <__memory/construct_at.h>
H A DCMakeLists.txt389 __memory/construct_at.h
H A Doptional168 #include <__memory/construct_at.h>
374 _VSTD::construct_at(_VSTD::addressof(this->__val_), _VSTD::forward<_Args>(__args)...);
H A Dmodule.modulemap.in842 module construct_at { private header "__memory/construct_at.h" }
H A D__bit_reference19 #include <__memory/construct_at.h>
H A Dstring1506 std::construct_at(std::addressof(__begin[__i]));
/llvm-project-15.0.7/llvm/utils/gn/secondary/libcxx/include/
H A DBUILD.gn450 "__memory/construct_at.h",