Skip to content

Instantly share code, notes, and snippets.

View Drusy's full-sized avatar

Kévin Renella Drusy

View GitHub Profile
@Drusy
Drusy / pool.hpp
Last active January 23, 2022 08:19
Generic C++ Pool implementation
#ifndef POOL_H
#define POOL_H
#include <list>
#include <iostream>
using namespace std;
template<typename T>
class Pool
@Drusy
Drusy / singleton.hpp
Created March 19, 2014 21:09
Generic C++ singleton implementation
#ifndef SINGLETON_H
#define SINGLETON_H
#include <string>
using namespace std;
template<typename T>
class Singleton
{