48 template<
class CookieType>
49 constexpr CookieType
invalid_cookie =
static_cast<CookieType
>(~CookieType{});
51 template <
typename CookieType>
74 template <
typename T,
typename Container = i_vector<T>,
typename CookieType = cookie>
85 typedef typename container_type::iterator
iterator;
90 virtual std::size_t
size()
const = 0;
121 template <
typename T>
123 template <
typename T>
virtual ~i_basic_cookie_consumer()=default
virtual void release(cookie_type aCookie)=0
virtual long use_count(cookie_type aCookie) const =0
virtual void add_ref(cookie_type aCookie)=0
virtual const_iterator find(cookie_type aCookie) const =0
container_type::const_iterator const_iterator
virtual const_iterator begin() const =0
virtual iterator find(cookie_type aCookie)=0
virtual const value_type & at_index(std::size_t aIndex) const =0
virtual cookie_type next_cookie()=0
virtual container_type & items()=0
virtual cookie_type insert(value_type const &aItem)=0
virtual iterator begin()=0
virtual const_iterator cbegin() const =0
virtual bool contains(cookie_type aCookie) const =0
virtual std::size_t size() const =0
virtual bool empty() const =0
virtual iterator remove(cookie_type aCookie)=0
virtual iterator remove(value_type const &aItem)=0
virtual iterator add(cookie_type aCookie, value_type const &aItem)=0
virtual const_iterator cend() const =0
virtual void return_cookie(cookie_type aCookie)=0
virtual cookie_type item_cookie(value_type const &aItem) const =0
virtual value_type & at_index(std::size_t aIndex)=0
virtual value_type & operator[](cookie_type aCookie)=0
virtual const value_type & operator[](cookie_type aCookie) const =0
virtual iterator erase(const_iterator aItem)=0
virtual const container_type & items() const =0
virtual const_iterator end() const =0
virtual ~i_basic_jar()=default
container_type::iterator iterator
i_basic_jar< T, i_vector< T >, small_cookie > i_small_jar
i_basic_cookie_consumer< small_cookie > i_small_cookie_consumer
i_basic_jar< T, i_vector< T >, cookie > i_jar
i_basic_cookie_consumer< cookie > i_cookie_consumer
constexpr CookieType invalid_cookie
no_pointer_value_type_cookie_lookup()