Commit Graph

493 Commits (44d26000676565a6e649de22739902cfe93bf212)

Author SHA1 Message Date
Daniel Kolesa 44d2600067 fix warning when passing nullptr constant 2015-08-07 00:08:59 +01:00
Daniel Kolesa 661bd5244e null checks 2015-08-06 23:57:40 +01:00
Daniel Kolesa 8ba91c12fe string clear check 2015-08-05 21:58:06 +01:00
Daniel Kolesa 4f23017594 keyset: allow get_key to return by value (still use reference where possible) 2015-08-05 20:05:03 +01:00
Daniel Kolesa 50a8562d20 ensure correct ctor overload resolution on char/pointer range for two pointers vs pointer plus size when passed int (or similar) 2015-08-05 02:09:44 +01:00
Daniel Kolesa da4c3a0947 add ostd::Keyset - an associative array that stores keys inside of their elements 2015-08-02 15:57:09 +01:00
Daniel Kolesa 9729ce1bbc simplify and fix multimap/multiset emplace 2015-08-02 15:08:42 +01:00
Daniel Kolesa 770f5ea0f2 use the new functor as default cmp in hashtables 2015-08-02 14:58:49 +01:00
Daniel Kolesa 65fb75d8ab add function object EqualWithCstr to consider char pointers strings 2015-08-02 14:56:10 +01:00
Daniel Kolesa 74b233d5d1 add Vector::advance 2015-08-01 20:25:02 +01:00
Daniel Kolesa e89448af70 add vector push_n 2015-08-01 20:16:03 +01:00
Daniel Kolesa ef5951577d fix tuple (why did that compile?) 2015-08-01 18:34:53 +01:00
Daniel Kolesa bcb5f64250 str fixes 2015-08-01 04:29:26 +01:00
Daniel Kolesa 49af758238 explicit overloads of operator= on string for ptr/array because c++ type system blows 2015-08-01 04:19:37 +01:00
Daniel Kolesa bc2bd9ca3b hashtable fixes 2015-08-01 04:11:03 +01:00
Daniel Kolesa c66fa7c7bf forgot inline 2015-08-01 03:08:11 +01:00
Daniel Kolesa 0ceada8629 allow default ctor on PointerRange 2015-07-29 01:37:22 +01:00
Daniel Kolesa df4b169aa8 better range constraints 2015-07-28 02:40:24 +01:00
Daniel Kolesa bf8be04b01 actual warning fix 2015-07-26 19:08:47 +01:00
Daniel Kolesa 3fbaedbfc2 prevent compiler warnings on 32bit (code is not reached, but compilers complain) 2015-07-26 18:57:23 +01:00
Daniel Kolesa 5cf1c9feff more versions of vec operators 2015-07-26 15:26:52 +01:00
Daniel Kolesa f96e74902a more vector stuff 2015-07-26 15:18:41 +01:00
Daniel Kolesa b4619085b7 basic vector operations 2015-07-26 15:05:12 +01:00
Daniel Kolesa ea024ea80e vecmath constructors and relational operators 2015-07-26 14:53:09 +01:00
Daniel Kolesa 431bfa4dc8 initial skeleton for octastd vector math lib 2015-07-26 04:03:13 +01:00
Daniel Kolesa 841000d4d8 better string append() and operator+= (easy ranged append) 2015-07-25 02:34:07 +01:00
Daniel Kolesa 6c28e6dd66 fixed typo 2015-07-25 02:07:51 +01:00
Daniel Kolesa 178e6d2ae2 remove AnyString 2015-07-25 01:35:36 +01:00
Daniel Kolesa 90bc301487 reliable and simple string relational operators that work on ConstCharRange 2015-07-24 19:43:39 +01:00
Daniel Kolesa 7ede73f4dc sink based concat() (no allocation in-func) 2015-07-23 02:05:08 +01:00
Daniel Kolesa 287bdbd312 contiguous ranges provide the data() method to retrieve a pointer to the sequence 2015-07-23 01:32:22 +01:00
Daniel Kolesa 7fc4ce0a3a new range category: ContiguousRange (guaranteed to be backed by contiguous memory) 2015-07-23 01:28:25 +01:00
Daniel Kolesa 0e0ba19ead stricter to_format check 2015-07-23 00:48:32 +01:00
Daniel Kolesa ad2d69e83d use a sink for to_string methods on objects (no extra allocs) 2015-07-23 00:44:23 +01:00
Daniel Kolesa 9446470f3c use ConstCharRange for concat separator 2015-07-22 21:10:04 +01:00
Daniel Kolesa 13ca140b63 string ctor for pointer and literal because c++ semantics suck 2015-07-22 21:01:02 +01:00
Daniel Kolesa 161ab5be85 cleaned up constructors/assign ops for string and vector 2015-07-22 20:51:12 +01:00
Daniel Kolesa b9edc0c568 rewritten and simplified write(f/ln) on stream objects 2015-07-22 02:06:36 +01:00
Daniel Kolesa debbddc8da format cleanups (and add convenience method put_string to the to_format range) 2015-07-22 01:53:55 +01:00
Daniel Kolesa b2d656e481 use ConstCharRange when formatting strings 2015-07-22 01:30:23 +01:00
Daniel Kolesa 5786fc5fb7 user defined literal for const char ranges 2015-07-22 00:13:44 +01:00
Daniel Kolesa 458e0b8b87 use ConstCharRange for streams 2015-07-21 22:30:53 +01:00
Daniel Kolesa a84142474c io.hh cleanup 2015-07-21 22:21:54 +01:00
Daniel Kolesa 7a2f8581d7 StringRange -> CharRange 2015-07-21 22:06:23 +01:00
Daniel Kolesa f2082d17cd use string ranges everywhere else in format 2015-07-21 22:03:57 +01:00
Daniel Kolesa ede7e3f8b6 don't use strcmp in tests 2015-07-21 21:46:43 +01:00
Daniel Kolesa 874f8a3c14 use string ranges in format 2015-07-21 21:45:04 +01:00
Daniel Kolesa 7a0237788f ConstStringRange ToString specialization 2015-07-21 20:25:09 +01:00
Daniel Kolesa aa9bdb3ec2 better StringRange from-string ctor (allows for non-const to const conv semantics) 2015-07-21 20:23:31 +01:00
Daniel Kolesa 5d36b5663c StringRange - differentiate between arrays and pointer constructors 2015-07-21 20:19:27 +01:00