@@ -385,14 +385,12 @@ class Option final {
385
385
// / reuse, making variable names bad.
386
386
// / * It's expected due to std::optional and general container-of-one things
387
387
// / to provide access through operator* and operator->.
388
- constexpr const std::remove_reference_t <T>& operator *() const & noexcept
389
- sus_lifetimebound {
388
+ constexpr const std::remove_reference_t <T>& operator *() const & noexcept {
390
389
::sus::check (t_.state() == Some);
391
390
return t_.val ();
392
391
}
393
392
constexpr const std::remove_reference_t <T>* operator *() && noexcept = delete ;
394
- constexpr std::remove_reference_t <T>& operator *() & noexcept
395
- sus_lifetimebound {
393
+ constexpr std::remove_reference_t <T>& operator *() & noexcept {
396
394
::sus::check (t_.state() == Some);
397
395
return t_.val_mut ();
398
396
}
@@ -422,15 +420,13 @@ class Option final {
422
420
// / reuse, making variable names bad.
423
421
// / * It's expected due to std::optional and general container-of-one things
424
422
// / to provide access through operator* and operator->.
425
- constexpr const std::remove_reference_t <T>* operator ->() const & noexcept
426
- sus_lifetimebound {
423
+ constexpr const std::remove_reference_t <T>* operator ->() const & noexcept {
427
424
::sus::check (t_.state() == Some);
428
425
return ::sus::mem::addressof (
429
426
static_cast <const std::remove_reference_t <T>&>(t_.val ()));
430
427
}
431
428
constexpr const std::remove_reference_t <T>* operator ->() && noexcept ;
432
- constexpr std::remove_reference_t <T>* operator ->() & noexcept
433
- sus_lifetimebound {
429
+ constexpr std::remove_reference_t <T>* operator ->() & noexcept {
434
430
::sus::check (t_.state() == Some);
435
431
return ::sus::mem::addressof (
436
432
static_cast <std::remove_reference_t <T>&>(t_.val_mut ()));
@@ -839,8 +835,7 @@ class Option final {
839
835
840
836
// / Returns an Option<const T&> from this Option<T>, that either holds #None
841
837
// / or a reference to the value in this Option.
842
- constexpr Option<const std::remove_reference_t <T>&> as_ref () const & noexcept
843
- sus_lifetimebound {
838
+ constexpr Option<const std::remove_reference_t <T>&> as_ref () const & noexcept {
844
839
if (t_.state () == None)
845
840
return Option<const std::remove_reference_t <T>&>::none ();
846
841
else
@@ -860,7 +855,7 @@ class Option final {
860
855
861
856
// / Returns an Option<T&> from this Option<T>, that either holds #None or a
862
857
// / reference to the value in this Option.
863
- constexpr Option<T&> as_mut () & noexcept sus_lifetimebound {
858
+ constexpr Option<T&> as_mut () & noexcept {
864
859
if (t_.state () == None)
865
860
return Option<T&>::none ();
866
861
else
@@ -878,8 +873,7 @@ class Option final {
878
873
return Option<T&>(t_.take_and_set_none ());
879
874
}
880
875
881
- constexpr Once<const std::remove_reference_t <T>&> iter () const & noexcept
882
- sus_lifetimebound {
876
+ constexpr Once<const std::remove_reference_t <T>&> iter () const & noexcept {
883
877
return Once<const std::remove_reference_t <T>&>::with (as_ref ());
884
878
}
885
879
constexpr Once<const std::remove_reference_t <T>&> iter () && noexcept
@@ -889,9 +883,7 @@ class Option final {
889
883
::sus::move (*this ).as_ref());
890
884
}
891
885
892
- constexpr Once<T&> iter_mut () & noexcept sus_lifetimebound {
893
- return Once<T&>::with (as_mut ());
894
- }
886
+ constexpr Once<T&> iter_mut () & noexcept { return Once<T&>::with (as_mut ()); }
895
887
constexpr Once<T&> iter_mut () && noexcept
896
888
requires(std::is_reference_v<T>)
897
889
{
0 commit comments