Skip to content

killwing/underscore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Underscore

A C++11 library inspired by underscore.js
It supports collection (container) functions like underscorejs.

RandomAccess > Bidirectional > Forward > Input

Collections:

  • C-style array (R)
  • array (R)
  • string (R)
  • vector (R)
  • deque (R)
  • list (B)
  • forward_list (F)
  • set & multiset (B)
  • unordered_set & unordered_multiset (F)
  • map & multimap (B)
  • unordered_map & unordered_multimap (F)

Not Supported:

  • stack
  • queue & priority_queue

Collection Functions (Requirement):

  • each (I)
  • map (I)
  • reduce (I)
  • reduceRight (B)
  • find (I)
  • filter (I)
  • where
  • reject (I)
  • every (I)
  • some (I)
  • contains (I)
  • invoke (I)
  • pluck (I)
  • max (F)
  • min (F)
  • sortBy (R)
  • groupBy (I)
  • countBy (I)
  • shuffle (R)
  • toArray (I)
  • size (I)

See test.cpp for examples.

About

C++11 utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages