Skip to content

Instantly share code, notes, and snippets.

Avatar

Tyanmahou tyanmahou

View GitHub Profile
@tyanmahou
tyanmahou / AsTuple.hpp
Last active Dec 27, 2017
tupleのヘルパーメタ関数
View AsTuple.hpp
#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 Oct 31, 2017
range options
View Range.hpp
#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>
View IntegerEnum.hpp
#pragma once
namespace ie
{
namespace detail
{
struct Value
{
constexpr Value() = default;
constexpr Value(const int& other) :
View LogicalOperation.h
#pragma once
#include<vector>
#include<algorithm>
template<class Type>
struct OR;
template<class Type>
struct AND;
You can’t perform that action at this time.