summaryrefslogtreecommitdiffstats
path: root/libcxx/include/regex
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-11-16 04:48:34 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-11-16 04:48:34 +0000
commit80ebbb17a129213118862f03372bd912b95276d8 (patch)
tree587774ea9ae2e631766fe621751c54246f184563 /libcxx/include/regex
parent6348188e87d9eb19134f7be48a0574321fa9bf3e (diff)
downloadbcm5719-llvm-80ebbb17a129213118862f03372bd912b95276d8.tar.gz
bcm5719-llvm-80ebbb17a129213118862f03372bd912b95276d8.zip
More of P0600 - '[[nodiscard]] in the Library' mark empty() as nodiscard in match_results. <regex>
llvm-svn: 318375
Diffstat (limited to 'libcxx/include/regex')
-rw-r--r--libcxx/include/regex8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex
index 553d08d8188..ff84b2738b7 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -5240,11 +5240,11 @@ public:
// size:
_LIBCPP_INLINE_VISIBILITY
- size_type size() const {return __matches_.size();}
+ size_type size() const _NOEXCEPT {return __matches_.size();}
_LIBCPP_INLINE_VISIBILITY
- size_type max_size() const {return __matches_.max_size();}
- _LIBCPP_INLINE_VISIBILITY
- bool empty() const {return size() == 0;}
+ size_type max_size() const _NOEXCEPT {return __matches_.max_size();}
+ _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY
+ bool empty() const _NOEXCEPT {return size() == 0;}
// element access:
_LIBCPP_INLINE_VISIBILITY
OpenPOWER on IntegriCloud