How is std::is_constructible<T, Args> implemented? [duplicate]
问题 This question already has answers here : C++98/03 std::is_constructible implementation (2 answers) Closed 2 years ago . So far I can't find anything ELI5 online. For a learning project I would like to implement my own is_constructible. Can someone explain how it works, please? 回答1: From cppreference: [I]f the variable definition T obj(std::declval<Args>()...); is well-formed, value is equal to true , else value is false . Checking whether code is well-formed can be done with SFINAE techniques