Commit Graph

37 Commits (32b59e0c2e80d2d01a2b74d525ab6b885d9563c4)

Author SHA1 Message Date
Daniel Kolesa 850d20093a string equality + tweaks 2015-06-14 02:36:20 +01:00
Daniel Kolesa 13b8b06d33 hashing improvements, allow to_hash on containers 2015-06-09 18:58:21 +01:00
Daniel Kolesa ea42a5e841 use new type aliases + refactoring + namespacing 2015-06-08 21:20:12 +01:00
Daniel Kolesa d4e234f893 type renames 2015-06-08 01:39:12 +01:00
Daniel Kolesa 6eae6487c4 replace usages of typedef with "using" 2015-06-08 00:55:08 +01:00
Daniel Kolesa 7f1c80e2d6 oops 2015-06-07 18:31:27 +01:00
Daniel Kolesa 4a45d03544 gcc warning fixes 2015-06-07 18:30:28 +01:00
Daniel Kolesa 548de69102 add octa::FunctionMakeDefaultConstructible, use in MapRange and FilterRange
This turns any callable object into a primitive default constructible type.
That is, for regular function objects, the type represents the object type
itself, for function pointers, the type represents the function pointer,
for simple lambdas the type represents a function pointer they map to
(only when the lambda doesn't capture) and for closures it represents
the right octa::Function type.
2015-06-07 18:07:48 +01:00
Daniel Kolesa 2652fe9242 octa::Function allocator support 2015-06-07 01:14:04 +01:00
Daniel Kolesa e9ab01b894 function cleanup 2015-06-07 00:03:06 +01:00
Daniel Kolesa 84d78ba87a deuglify template args 2015-06-04 22:57:06 +01:00
Daniel Kolesa 153812e91e deuglify functional.h 2015-06-03 23:27:09 +01:00
Daniel Kolesa ff90009450 get rid of stupid Type suffixes (we already know it's a type from the name) 2015-06-03 20:00:41 +01:00
Daniel Kolesa bfc94e31d7 uglify the code by using unique identifiers only (prevent macro conflicts) 2015-06-02 00:57:34 +01:00
Daniel Kolesa e9367246b5 completely genericized octa::swap (no need for global overloads ever) 2015-05-26 21:29:44 +01:00
Daniel Kolesa 029575d4a6 add octa::each 2015-05-26 19:25:20 +01:00
Daniel Kolesa 64810e4006 remove the noexcept stuff; nothing in octastd ever throws 2015-05-20 22:05:41 +01:00
Daniel Kolesa e3d5da3e66 octa::Hash in functional.h (+ specializations for all primitive types) 2015-05-10 21:57:52 +01:00
Daniel Kolesa 98e7566ad9 coding style 2015-05-03 23:44:48 +01:00
Daniel Kolesa da69a57015 add input func check to octa::Function 2015-05-03 16:09:47 +01:00
Daniel Kolesa b1192b248c noexcept formatting 2015-04-29 01:38:16 +01:00
Daniel Kolesa 1a2d606ae7 noexcept the library 2015-04-28 18:48:58 +01:00
Daniel Kolesa f4b0691003 noexcept for functional 2015-04-28 02:30:17 +01:00
Daniel Kolesa 56f19204a2 style update 2015-04-27 20:23:38 +01:00
Daniel Kolesa d7778cf259 ditch the separate "type" struct 2015-04-27 19:38:34 +01:00
Daniel Kolesa 0245db3fec rename traits->type_traits 2015-04-25 16:13:21 +01:00
Daniel Kolesa 6de48f1f21 refactor traits: e.g. "RemoveCV<T>" instead of "typename RemoveCV<T>::type" 2015-04-24 20:03:16 +01:00
Daniel Kolesa f106c5ae24 get rid of namespace internal 2015-04-24 18:16:35 +01:00
Daniel Kolesa 89bab3362b add another condition on Function in-place optimization 2015-04-23 21:05:09 +01:00
Daniel Kolesa 0c217e2128 add all remaining traits + cleanup, remove namespace internal etc 2015-04-23 20:38:18 +01:00
Daniel Kolesa 90cecea052 correctly forward 2015-04-22 23:28:43 +01:00
Daniel Kolesa 9a7a832fe3 move mem_fn to functional 2015-04-22 23:25:02 +01:00
Daniel Kolesa af9eff5c6d add functional::Function (generic wrapper around any callable type) 2015-04-22 18:42:58 +01:00
Daniel Kolesa 1177d94b6e implement ReferenceWrapper + ref/cref + address_of 2015-04-18 19:03:11 +01:00
Daniel Kolesa 799c9fed94 add not1/not2 2015-04-18 18:36:06 +01:00
Daniel Kolesa 6247093ad9 add BinaryNegate and UnaryNegate 2015-04-18 02:50:20 +01:00
Daniel Kolesa c147f57588 add functional.h (for now with operator functor defs) + skeleton for algorithm.h 2015-04-18 02:35:36 +01:00