2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

Consistently replace typedef with using in documentation

This commit is contained in:
Peter Dimov
2024-05-03 20:18:25 +03:00
parent cc9b2f101a
commit c915af978a
7 changed files with 10 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ private:
public:
typedef uuid result_type;
using result_type = uuid;
basic_random_generator();

View File

@@ -15,8 +15,8 @@ namespace uuids {
// only provided for backward compatibility
typedef name_generator_sha1 name_generator;
typedef name_generator_sha1 name_generator_latest;
using name_generator = name_generator_sha1;
using name_generator_latest = name_generator_sha1;
}} //namespace boost::uuids
----

View File

@@ -16,7 +16,7 @@ class name_generator_md5
{
public:
typedef uuid result_type;
using result_type = uuid;
explicit name_generator_md5( uuid const& namespace_uuid ) noexcept;

View File

@@ -16,7 +16,7 @@ class name_generator_sha1
{
public:
typedef uuid result_type;
using result_type = uuid;
explicit name_generator_sha1( uuid const& namespace_uuid ) noexcept;

View File

@@ -12,7 +12,7 @@ namespace uuids {
struct nil_generator
{
typedef uuid result_type;
using result_type = uuid;
uuid operator()() const noexcept;
};

View File

@@ -24,7 +24,7 @@ private:
public:
typedef uuid result_type;
using result_type = uuid;
random_generator();
@@ -33,8 +33,8 @@ public:
// only provided for backward compatibility
typedef basic_random_generator<std::mt19937> random_generator_mt19937;
typedef basic_random_generator<std::random_device> random_generator_pure;
using random_generator_mt19937 = basic_random_generator<std::mt19937>;
using random_generator_pure = basic_random_generator<std::random_device> random_generator_pure;
}} // namespace boost::uuids
----

View File

@@ -12,7 +12,7 @@ namespace uuids {
struct string_generator
{
typedef uuid result_type;
using result_type = uuid;
template<class Ch, class Traits, class Alloc>
uuid operator()( std::basic_string<Ch, Traits, Alloc> const& s ) const;