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 "stdafx.h" | |
#include <list> | |
#include <bitset> | |
#include <array> | |
#include <vector> | |
using namespace std; | |
// LOL what where I thinking | |
// Going to fancy trying to avoid inner loop O(N^2) and even hash function |
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 "stdafx.h" | |
#include <string> | |
class collection {}; | |
template<typename query_set_base_t> | |
struct query_set_base | |
{ | |
query_set_base_t & select(const std::string & q) { return *static_cast<query_set_base_t*>(this); } |
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> | |
/* | |
Attempt to create dependency injections for easier testing without using dynamic polimorphism | |
Implementation is seperated into helper classes from the real usage classes. | |
This is to avoid using complex template types or auto to hold the instances | |
Updise: | |
- No vtables |
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 <vector> | |
#include <list> | |
#include <set> | |
enum class insert_method_enum{general, push_back, push_front}; | |
// Main template insert helper with its temlate specialications | |
template<insert_method_enum i> |
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> | |
#include <string> | |
// Dependency injection for c++ | |
//////////////////////////////////////////////////////// | |
// | |
// |