minamiyama1994 / ftmp Goto Github PK
View Code? Open in Web Editor NEWTMP library
License: GNU General Public License v3.0
TMP library
License: GNU General Public License v3.0
#include "FTMP/all.hpp"
してみたらコンパイルに失敗した。
in file included from main.cpp:1:
In file included from FTMP/include/FTMP/all.hpp:25:
In file included from FTMP/include/FTMP/and.hpp:25:
FTMP/include/FTMP/foldr.hpp:26:9: fatal error: 'FTMP/detail/first_half.hpp' file
not found
#include"FTMP/detail/first_half.hpp"
^
1 error generated.
ftmp::tuple::tuple < int , double , UserDefineType > value ;
auto map_result = ftmp::tuple::map ( function_object , value ) ;
auto foldr_result = ftmp::tuple::foldr ( function_object , init_value , value ) ;
auto foldl_result = ftmp::tuple::foldl ( function_object , init_value , value ) ;
FTMP library need test
#define MATCH .template match
auto res = [ ] ( auto x )
{
case_ ( x )
MATCH < int > ( [ ] ( int y ) { return y ; } )
MATCH < double > ( [ ] ( double y ) { return y ; } )
MATCH < std::vector < pattern < 0 > > > ( [ ] < typename T > ( const std::vector < T > & v ) { return v ; } )
MATCH < pattern < 0 > > ( [ ] ( auto y ) { return boost::any { y } ; } )
;
} ( some_value ) ;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.