OSVR-Core
Public Types | Public Member Functions | List of all members
osvr::util::UniqueContainer< Container, Policy, WrapperArgs > Class Template Reference

A "Unique Container" designed for composition, not inheritance. More...

#include <UniqueContainer.h>

Inheritance diagram for osvr::util::UniqueContainer< Container, Policy, WrapperArgs >:
osvr::util::UniqueContainerBase< Container, Policy, WrapperArgs... >

Public Types

using rv_reference = typename Container::value_type &&
 
using const_reference = typename Container::const_reference
 

Public Member Functions

bool contains (const_reference v)
 
bool insert (const_reference v)
 
bool insert (rv_reference v)
 
bool remove (const_reference v)
 
Container const & container () const
 Const access to the container is permitted.
 

Additional Inherited Members

- Protected Types inherited from osvr::util::UniqueContainerBase< Container, Policy, WrapperArgs... >
using value_type = typename Container::value_type
 
using reference = typename Container::reference
 
using rv_reference = typename Container::value_type &&
 
using const_reference = typename Container::const_reference
 
- Protected Member Functions inherited from osvr::util::UniqueContainerBase< Container, Policy, WrapperArgs... >
bool contains (const_reference v)
 Returns true iff the underlying container contains an instance of the given value. More...
 
bool insert (const_reference v)
 
bool insert (rv_reference v)
 
bool remove (const_reference v)
 
Container const & container () const
 Const access to the container is permitted.
 

Detailed Description

template<typename Container, typename Policy = unique_container_policies::PushBack, typename... WrapperArgs>
class osvr::util::UniqueContainer< Container, Policy, WrapperArgs >

A "Unique Container" designed for composition, not inheritance.

See also
UniqueContainerBase

The documentation for this class was generated from the following file: