Skip to content

Instantly share code, notes, and snippets.

@bo0ts
Created December 21, 2012 11:50
Show Gist options
  • Save bo0ts/4352350 to your computer and use it in GitHub Desktop.
Save bo0ts/4352350 to your computer and use it in GitHub Desktop.
template <typename T>
struct is_poolable;
template <typename Poolable>
struct Pooling_traits {
typedef hidden size_type;
/// \name Query Functions
/// @{
static size_type size();
static size_type capacity();
/// @}
/// \name Manipulation
/// @{
static bool max_size(size_type n);
static void clear();
/// @}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment