summaryrefslogtreecommitdiffstats
path: root/src/common/convenience.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common/convenience: remove lock helpersSage Weil2018-11-211-134/+0
| | | | | | These aren't so useful now that we're in an C++17 world. Signed-off-by: Sage Weil <sage@redhat.com>
* Rename "include/assert.h"Brad Hubbard2018-09-141-1/+1
| | | | | | | | | This conflicts with the system assert.h so rename and change includes to reflect the new name. Fixes: http://tracker.ceph.com/issues/35682 Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
* common: Add ceph::for_each for tuplesAdam C. Emerson2018-01-121-0/+40
| | | | | | Expand to pairs, optionals, and variants later. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Make maybe functions support std::optionalAdam C. Emerson2018-01-121-0/+32
| | | | Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Remove backport_std.h entirelyAdam C. Emerson2018-01-081-1/+0
| | | | | | And use the experimental ostream joiner provided with the library. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Remove backported typedefsAdam C. Emerson2018-01-081-1/+1
| | | | | | Since they're no longer needed. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Switch from boost::shared_mutex to std::shared_mutexAdam C. Emerson2017-12-141-5/+5
| | | | Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Get rid of artifact filenameAdam C. Emerson2017-12-141-1/+1
| | | | | | | Since we're on C++14, we're just backporting from future standards generally. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Swap C++14 template type aliases for variablesAdam C. Emerson2017-12-141-18/+18
| | | | | | | C++14 provides the ability to define template variables, which the C++17 library puts to good use. We define those same aliases. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Add functions to deal with boost::optionalAdam C. Emerson2017-10-281-0/+38
| | | | | | Simply provide what's obvious but missing. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Add locking template functions and macrosAdam C. Emerson2017-08-091-0/+164
These infer the type of the unique/shared/shunique lock from the type of the mutex. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>