Skip to content

Instantly share code, notes, and snippets.

View loliGothicK's full-sized avatar
:octocat:
may the --force be with you!

Mitama loliGothicK

:octocat:
may the --force be with you!
View GitHub Profile
@loliGothicK
loliGothicK / resume.mitama.md
Last active February 3, 2022 19:10
[Engineer Resume] Mitama

Basic Info

  • Name: Yuki Wada
  • Twitter: @mitama_rs (いなむのみたまのかみ)

Outputs

a C++17 library that provides Result and Maybe with monadic functions

@loliGothicK
loliGothicK / variadic_arg_bind.cpp
Created November 7, 2016 07:26
可変長引数を関数オブジェクトにバインドして後から指定した関数に渡す感じのやーつ
#include <iostream>
#include <functional>
#include <vector>
#include <initializer_list>
#include <utility>
#include <tuple>
#include <memory>
namespace cranberries {
@loliGothicK
loliGothicK / file0.cpp
Last active May 15, 2021 04:21
C++のパラメータパック基礎&パック展開テクニック ref: https://qiita.com/_EnumHack/items/677363eec054d70b298d
template < typename ...Args >
void func( Args ...args );
namespace A
{
void f(){std::cout << "A" << std::endl;};
void hoge(){
f(); // 名前空間の中では修飾しなくても呼び出せる
}
}
namespace B
{
#ifndef MITAMA_RANGE_VIEW_FLIP_HPP
#define MITAMA_RANGE_VIEW_FLIP_HPP
#include <range/v3/all.hpp>
#include <utility>
#include <type_traits>
#include <tuple>
namespace mitama::views {
inline constexpr auto flip = ranges::views::transform([](auto&& t){
static_assert(std::tuple_size_v<std::decay_t<decltype(t)>> >= 2);
#ifndef MITAMA_RANGE_CONVERSION_HPP
#define MITAMA_RANGE_CONVERSION_HPP
#include <range/v3/all.hpp>
#include <utility>
#include <type_traits>
#include <tuple>
#include <mitama/mana/type_traits/is_tuple_like.hpp>
#include <boost/hana/functional/overload_linearly.hpp>
namespace mitama::_collect_fn_detail {
template <class Dictionary, class=void>
@loliGothicK
loliGothicK / explorer_range_wrapper.hpp
Created October 10, 2019 21:57
range wrapper for TopExp_Explorer
#ifndef CADDi_OCC_EXTENSIONS_EXPLORER_HPP
#define CADDi_OCC_EXTENSIONS_EXPLORER_HPP
#include <iterator>
#include <type_traits>
#include <utility>
#include <functional>
#include <memory>
#include <TopExp_Explorer.hxx>
#include <TopoDS_Shape.hxx>
#include <boost/container/flat_map.hpp>
@loliGothicK
loliGothicK / entry.hpp
Created October 10, 2019 21:54
Entry for FlatMap
#ifndef MITAMA_CONTAINER_ENTRY_HPP
#define MITAMA_CONTAINER_ENTRY_HPP
#include <boost/container/flat_map.hpp>
#include <functional>
#include <type_traits>
#include <utility>
namespace mitama {
template <class K, class V>
std::is_same<T,U>::value
version: 2.1
orbs: # Inline Orbs for Document Integration
mkdocs:
jobs:
test_book: # Sample Code Integration
parameters:
compiler:
description: compiler-version
type: string