Add functions make_fixed_map, make_fixed_set and make_fixed_vector to deduce the size of their container at compile time.
When it's known that a container won't need to grow at runtime, it is now possible to create the container without specifying its maximum size, and its maximum size will be deduced to be the number of items passed to the make_fixed_[map/set/vector] function.
The SIZE template parameter in these functions has been pushed down as far as possible to make it possible to change other template parameters without having to specify the size.
Add functions
make_fixed_map
,make_fixed_set
andmake_fixed_vector
to deduce the size of their container at compile time.When it's known that a container won't need to grow at runtime, it is now possible to create the container without specifying its maximum size, and its maximum size will be deduced to be the number of items passed to the
make_fixed_[map/set/vector]
function.The
SIZE
template parameter in these functions has been pushed down as far as possible to make it possible to change other template parameters without having to specify the size.Before:
After:
And now even the type can be deduced: