Created
January 24, 2019 13:29
-
-
Save carmel4a/0f9215f38fc12e676dbd867c6e9ba21c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template< class T, class V=void, class ...Args > | |
auto create( V v, Args... args ) -> T& | |
{ | |
childs.emplace_back( std::make_unique< T >( v, args... ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment