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
#include <iostream> | |
#include <string> | |
#include <set> | |
#include <unordered_set> | |
#include <list> | |
#include <algorithm> | |
using namespace std; | |
template <typename T> using intersection_set = set<reference_wrapper<T const>, less<T>>; |
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
#include <iostream> | |
#include <string> | |
#include <unordered_set> | |
#include <list> | |
#include <algorithm> | |
using namespace std; | |
list<string> compare_list_warning(list<string> const& list_one, list<string> const& list_two) | |
{ | |
list<string> const& small_list = list_one.size() < list_two.size() ? list_one : list_two; |
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
#include <iostream> | |
#include <string> | |
#include <unordered_set> | |
#include <set> | |
#include <list> | |
#include <algorithm> | |
#include <random> | |
#include <chrono> | |
#include <sstream> |
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
#include <memory> | |
template <class Parent, typename T> class readable final { | |
friend Parent; | |
T value_; | |
operator T& () { return value_; } | |
public: | |
readable(T const& v) : value_(v) {} | |
readable(T&& v) : value_(std::move(v)) {} | |
T const& operator () () { return value_; } |
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
#include <iostream> | |
#include <chrono> | |
#include <vector> | |
#include <set> | |
#include <list> | |
#include <unordered_set> | |
#include <random> | |
#include <string> | |
#include <sstream> |
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
#include <string> | |
#include <sstream> | |
#include <iostream> | |
#include <memory> | |
struct Serializer { | |
virtual ~Serializer() {} | |
virtual void StartRecord() = 0; | |
virtual void EndRecord() = 0; |
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
#include <sstream> | |
#include <string> | |
#include <vector> | |
#include <fstream> | |
#include <cstdint> | |
#include <array> | |
using UChar = uint8_t; | |
using Color = std::array<UChar, 3>; | |
using Image = std::vector<Color>; |
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
#include <iostream> | |
#include <iomanip> | |
#include <ctime> | |
#include <fstream> | |
#include <string> | |
std::ostream & format_2_l0(std::ostream & iStream) | |
{ | |
return iStream << std::setw(2) << std::setfill('0'); | |
} |
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
#include <iostream> | |
#include <map> | |
#include <sstream> | |
/** | |
* Converts a number into its french representation | |
* | |
* @see http://fr.wikipedia.org/wiki/Adjectif_num%C3%A9ral | |
*/ | |
class Convertisseur |
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
#ifndef IBM_ERRORS | |
#define IBM_ERRORS | |
/** | |
* C'est un peu la fête du slip les codes d'erreurs en macros | |
*/ | |
#define ERREUR_MARCEL_A_TROP_BU 1 | |
#define ERREUR_ROBERT_A_TROP_MANGE 2 | |
# define ERREUR_Y_A_PLUS_DE_PASTIS 3 |
OlderNewer