[libcxx-commits] [libcxx] [libc++] constexpr deque (PR #129368)
Nhat Nguyen via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Apr 11 16:51:24 PDT 2025
================
@@ -619,19 +620,20 @@ public:
__alloc_traits::deallocate(__alloc(), *__i, __block_size);
}
- _LIBCPP_HIDE_FROM_ABI explicit deque(const allocator_type& __a)
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 explicit deque(const allocator_type& __a)
: __map_(__pointer_allocator(__a)), __start_(0), __size_(0), __alloc_(__a) {
__annotate_new(0);
----------------
changkhothuychung wrote:
@frederick-vs-ja can you give me an example of where I can put `if (__libcpp_is_constant_evaluated()) return;` ? I am not sure how I can apply that function.
https://github.com/llvm/llvm-project/pull/129368
More information about the libcxx-commits
mailing list