Skip to content

Instantly share code, notes, and snippets.

View tyanmahou's full-sized avatar

Tyanmahou tyanmahou

View GitHub Profile
@tyanmahou
tyanmahou / AsTuple.hpp
Last active December 27, 2017 17:35
tupleのヘルパーメタ関数
#pragma once
#include<tuple>
///<summary>
//タプル型の結合
///<summary>
template<class Type1, class Type2>
struct TupleCombine
{
using type = std::tuple<Type1, Type2>;
@tyanmahou
tyanmahou / Range.hpp
Last active October 31, 2017 09:09
range options
#pragma once
#include<iterator>
namespace range
{
template<class Range>
using range_value_t = typename std::iterator_traits<decltype(std::begin(std::declval<Range&>()))>::value_type;
template<class Range>
@tyanmahou
tyanmahou / IntegerEnum.hpp
Last active October 12, 2017 02:48
IntegerEnum
#pragma once
namespace ie
{
namespace detail
{
struct Value
{
constexpr Value() = default;
constexpr Value(const int& other) :
@tyanmahou
tyanmahou / LogicalOperation.h
Last active August 24, 2017 10:15
or , and
#pragma once
#include<vector>
#include<algorithm>
template<class Type>
struct OR;
template<class Type>
struct AND;