Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

If you work with allocators, you will want to implement allocator-aware types. If possible, you can accept an allocator as an additional constructor argument. If this isn't feasible, the alternative approach is to use the std::allocator_arg_t tag type as the first argument, followed by the allocator and the usual constructor arguments. Compiler Explorer link: https://lnkd.in/dW4DSxey #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories