aboutsummaryrefslogtreecommitdiffstats
path: root/include/jau/cow_iterator.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-02-07 03:16:54 +0100
committerSven Gothel <[email protected]>2021-02-07 03:16:54 +0100
commit112528c73f09b262bd53f817f9d9ff9343af0ee9 (patch)
treefa45743017193d5e8f145fe148e647d7faf7eada /include/jau/cow_iterator.hpp
parent0beca1db7651b710a4514656fa2ac936d03b735b (diff)
Refine constexpr_* macros for functions: Add '_func' hinting function and use alternative constexpr function qualifier 'inline'
Diffstat (limited to 'include/jau/cow_iterator.hpp')
-rw-r--r--include/jau/cow_iterator.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/jau/cow_iterator.hpp b/include/jau/cow_iterator.hpp
index 0be2455..4133c1d 100644
--- a/include/jau/cow_iterator.hpp
+++ b/include/jau/cow_iterator.hpp
@@ -456,15 +456,15 @@ namespace jau {
constexpr difference_type operator-(const cow_rw_iterator& rhs) const noexcept
{ return iterator_ - rhs.iterator_; }
- constexpr_cxx20 std::string toString() const noexcept {
+ constexpr_func_cxx20 std::string toString() const noexcept {
return jau::to_string(iterator_);
}
#if 0
- constexpr_cxx20 operator std::string() const noexcept {
+ constexpr_func_cxx20 operator std::string() const noexcept {
return toString();
}
#endif
- constexpr_cxx20 std::string get_info() const noexcept {
+ constexpr_func_cxx20 std::string get_info() const noexcept {
return "cow_rw_iterator[this "+jau::aptrHexString(this)+", CoW "+jau::aptrHexString(&cow_parent_)+
", store "+jau::aptrHexString(&store_ref_)+
", "+jau::to_string(iterator_)+"]";
@@ -922,15 +922,15 @@ namespace jau {
constexpr difference_type distance(const cow_rw_iterator<storage_t, storage_ref_t, cow_container_t>& rhs) const noexcept
{ return iterator_ - rhs.iterator_; }
- constexpr_cxx20 std::string toString() const noexcept {
+ constexpr_func_cxx20 std::string toString() const noexcept {
return jau::to_string(iterator_);
}
#if 0
- constexpr_cxx20 operator std::string() const noexcept {
+ constexpr_func_cxx20 operator std::string() const noexcept {
return toString();
}
#endif
- constexpr_cxx20 std::string get_info() const noexcept {
+ constexpr_func_cxx20 std::string get_info() const noexcept {
return "cow_ro_iterator[this "+jau::aptrHexString(this)+
", store "+jau::aptrHexString(&store_ref_)+
", "+jau::to_string(iterator_)+"]";