list.h 418 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "fwd.h"
  3. #include <util/memory/alloc.h>
  4. #include <initializer_list>
  5. #include <list>
  6. #include <memory>
  7. #include <utility>
  8. template <class T, class A>
  9. class TList: public std::list<T, TReboundAllocator<A, T>> {
  10. using TBase = std::list<T, TReboundAllocator<A, T>>;
  11. public:
  12. using TBase::TBase;
  13. inline explicit operator bool() const noexcept {
  14. return !this->empty();
  15. }
  16. };