Is_constructible from curly braces list

Is there an intention to implement in STL an option std::is_constructiblethat is suitable for determining whether a particular type is constructive of curly braces, filled with the specified parameter packages or not? I mean something like: std::is_curly_braces_constructible< T, Args... >::value trueif and only if it is T{std::declval< Args >()...}correctly formed.

I think that such a trait will be useful.

EDIT:

This question is not a duplicate of this question . Here I am asking about the standard template library , but not about implementing custom code.

+4
source share

Source: https://habr.com/ru/post/1546104/


All Articles