1
0
forked from Alepha/Alepha

Merge branch 'master' into concepts-in-comparisons

* master:
  Modernize (partially) the comparisons header's module namespaces.
  Allow for setting of delimiters.
  Match `noexcept` on `cbegin`/`cend` deletions to std.
  Fixup an example in comments on options.

 Conflicts:
	comparisons.h
This commit is contained in:
2025-11-04 10:41:25 -10:00
3 changed files with 6 additions and 3 deletions

View File

@ -27,6 +27,9 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: delimiters_m
explicit explicit
Delimiter( const std::string dflt ) Delimiter( const std::string dflt )
: state( [dflt] { return dflt; } ) {} : state( [dflt] { return dflt; } ) {}
void set( const std::string s ) { state.setDefault( s ); }
void set( const char c ) { set( std::string{ c } ); }
}; };
namespace exports namespace exports

View File

@ -448,8 +448,8 @@ namespace Alepha::Hydrogen::inline exports::inline Buffer_m
template<> template<>
constexpr auto constexpr auto
std::cbegin( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) -> decltype( range.begin() )= delete; std::cbegin( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) noexcept( noexcept( std::begin( range ) ) ) -> decltype( range.begin() )= delete;
template<> template<>
constexpr auto constexpr auto
std::cend( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) -> decltype( range.end() )= delete; std::cend( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) noexcept( noexcept( std::end( range ) ) ) -> decltype( range.end() )= delete;

View File

@ -51,7 +51,7 @@ static_assert( __cplusplus > 2020'99 );
* int * int
* main( int argc, const char **argv ) * main( int argc, const char **argv )
* { * {
* using namespace Alepha::program_options; * using namespace Alepha::exports::ProgramOptions_m;
* *
* //Let's define a few options: * //Let's define a few options:
* *