is_constructible Class
Tests whether a type is constructible when the specified argument types are used.
Syntax
template <class T, class... Args>
struct is_constructible;
Parameters
T
The type to query.
Args
The argument types to match in a constructor of T.
Remarks
An instance of the type predicate holds true if the type T is constructible by using the argument types in Args, otherwise it holds false. Type T is constructible if the variable definition T t(std::declval<Args>()...);
is well-formed. Both T and all the types in Args must be complete types, void
, or arrays of unknown bound.
Requirements
Header: <type_traits>
Namespace: std
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για