Skip to content

Instantly share code, notes, and snippets.

Avatar

nnorm nnorm

  • LNX
  • France
View GitHub Profile
View gist:223d34669407aec8723b89838aba7adb
### Keybase proof
I hereby claim:
* I am nnorm on github.
* I am nnorm (https://keybase.io/nnorm) on keybase.
* I have a public key ASDxx_HbQ89W1oecCQe4mKpapv_kXhKUSPcyO9HjBQBLjwo
To claim this, I am signing this object:
@nnorm
nnorm / pioche.cpp
Created Feb 26, 2017
Dynamic generic container, working as a pile (add at the bottom, remove at the top).
View pioche.cpp
#include "pioche.hpp"
#include <string.h>
#include <iostream>
//#define NDEBUG //uncomment before compiling so the assert macros are disabled for release version
#include <cassert>
void pioche_init(Pioche& pioche, int taille_elt) {
pioche.elementSize_ = taille_elt;
pioche.capacity_ = 1;
@nnorm
nnorm / pioche.cpp
Created Feb 26, 2017
Dynamic generic container, working as a pile (add at the bottom, remove at the top).
View pioche.cpp
#include "pioche.hpp"
#include <string.h>
#include <iostream>
//#define NDEBUG //uncomment before compiling so the assert macros are disabled for release version
#include <cassert>
void pioche_init(Pioche& pioche, int taille_elt) {
pioche.elementSize_ = taille_elt;
pioche.capacity_ = 1;
You can’t perform that action at this time.