-
-
Save anonymous/ac7792ac4da7f5e2dc71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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