27 #include <type_traits> 28 #include <flw/cmn/Macros.h> 36 template <
class T,
size_t M,
typename ... P>
37 class TManager :
public std::vector<std::unique_ptr<T>> {
44 T *add(P ... parameters) {
45 if ((*this).size() >= M) {
48 (*this).emplace_back(std::make_unique<T>(parameters...));
49 return (*this).back().get();
53 for (
auto &it : (*
this)) {
62 for (
auto &it : (*
this)) {
Basic manager.
Definition: TCacheVector.h:37