Skip to content

aiusepsi/cppmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository 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.

About

An experiment in using type-inference and templates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages