A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../memory/weak_ptr/../allocator_arg.html below:

std::allocator_arg, std::allocator_arg_t - cppreference.com

struct allocator_arg_t { explicit allocator_arg_t() = default; };

(1) (since C++11) (2) (since C++11)
(inline since C++17) 2) std::allocator_arg

is an instance of

(1)

that can be passed to the constructors and member functions of such permitted types.

[edit] Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

DR Applied to Behavior as published Correct behavior LWG 2510 C++11 the default constructor was non-explicit, which could lead to ambiguity made explicit [edit] See also checks if the specified type supports uses-allocator construction
(class template) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4