Default template parameters
C++17 or superior required:
template <typename T = int> class Foo{ }; int main() { Foo me; Foo<int> me2; Foo<bool> me3; }
Super convenient for code refactoring
C++17 or superior required:
template <typename T = int> class Foo{ }; int main() { Foo me; Foo<int> me2; Foo<bool> me3; }
Super convenient for code refactoring