Skip to content

Latest commit

 

History

7 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

仓库 files navigation

cppmap

An experiment in using type-inference and templates. Implements a map() function which takes an iterable object (anything with a .begin() method) and any unary callable (e.g. function pointer or functor) and returns a list comprising the items of the iterable object transformed by the unary callable.

My only annoyance is that I can't get the type deduction to work properly when passing an initialiser list directly without assigning it to a variable first.

关于

An experiment in using type-inference and templates.

Resources

Stars

1 star

关注者

1 watching

复刻s

发布

贡献者

Languages