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:
@@ -21,7 +21,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
typedef uuid result_type;
|
||||
using result_type = uuid;
|
||||
|
||||
basic_random_generator();
|
||||
|
||||
|
||||
@@ -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
|
||||
----
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace uuids {
|
||||
|
||||
struct nil_generator
|
||||
{
|
||||
typedef uuid result_type;
|
||||
using result_type = uuid;
|
||||
uuid operator()() const noexcept;
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
----
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user