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/../ranges/../concepts/constructible_from.html below:

std::constructible_from - cppreference.com

From cppreference.com

< cpp‎ | concepts C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros (C++20) Language support library Concepts library (C++20) Diagnostics library Memory management library Metaprogramming library (C++11) General utilities library Containers library Iterators library Ranges library (C++20) Algorithms library Strings library Text processing library Numerics library Date and time library Input/output library Filesystem library (C++17) Concurrency support library (C++11) Execution control library (C++26) Technical specifications Symbols index External libraries [edit] Concepts library Core language concepts same_as

(C++20)

derived_from

(C++20)

convertible_to

(C++20)

common_reference_with

(C++20)

common_with

(C++20)

integral

(C++20)

signed_integral

(C++20)

unsigned_integral

(C++20)

floating_point

(C++20)

swappableswappable_with

(C++20)(C++20)

destructible

(C++20)

constructible_from

(C++20)

default_initializable

(C++20)  

move_constructible

(C++20)

copy_constructible

(C++20)

assignable_from

(C++20)

Comparison concepts equality_comparableequality_comparable_with

(C++20)(C++20)

totally_orderedtotally_ordered_with

(C++20)(C++20)

Object concepts movable

(C++20)

copyable

(C++20)

semiregular

(C++20)

regular

(C++20)

Callable concepts invocableregular_invocable

(C++20)(C++20)

predicate

(C++20)

relation

(C++20)

equivalence_relation

(C++20)

strict_weak_order

(C++20)

Exposition-only concepts boolean-testable

 (C++20)

[edit]

Defined in header

<concepts> template< class T, class... Args >

concept constructible_from =

    std::destructible<T> && std::is_constructible_v<T, Args...>;
(since C++20)

The constructible_from concept specifies that a variable of type T can be initialized with the given set of argument types Args....

[edit] References
[edit] See also is_constructibleis_trivially_constructibleis_nothrow_constructible

(C++11)(C++11)(C++11)

checks if a type has a constructor for specific arguments
(class template) [edit]

Retrieved from "

https://en.cppreference.com/mwiki/index.php?title=cpp/concepts/constructible_from&oldid=177890

"


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