Skip to content

Instantly share code, notes, and snippets.

/gist:ac7792ac4da7f5e2dc71 Secret
Created Jan 7, 2015

Embed
What would you like to do?
template<class TWrapperType, typename THandleType>
class handle_vector
{
public:
void push_back(TWrapperType const &wrapper_obj) { m_handles.push_back(wrapper_obj.get_handle());}
uint32_t count() const { return m_handles.size(); }
const THandleType *data() const { return &m_handles[0]; }
private:
std::vector<THandleType> m_handles;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.