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 <stack> | |
#include <cassert> | |
struct BaseValue { | |
virtual ~BaseValue() {} | |
}; | |
template<typename T> | |
struct Value : public BaseValue{ |
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
// | |
// khash.h | |
// | |
// Created by Paul Perekhozhikh on 16.10.13. | |
// Copyright (c) 2013 Paul. All rights reserved. | |
// | |
#ifndef khash_h | |
#define khash_h |
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 <stack> | |
#include <cassert> | |
template <std::size_t... I> | |
class index_sequence {}; | |
template <std::size_t N, std::size_t ...I> | |
struct make_index_sequence : make_index_sequence<N-1, N-1,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 <iostream> | |
#include <vector> | |
#include <cstdlib> | |
struct test { | |
}; | |
struct test_virt : public test { | |
virtual void foo(){} | |
}; |
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 <vector> | |
#include <cstdlib> | |
struct test { | |
}; | |
struct test_virt : public test { | |
virtual void foo(){} | |
}; |
NewerOlder