name_generator_sha1.hpp 760 B

1234567891011121314151617181920212223242526272829
  1. #ifndef BOOST_UUID_NAME_GENERATOR_SHA1_HPP_INCLUDED
  2. #define BOOST_UUID_NAME_GENERATOR_SHA1_HPP_INCLUDED
  3. // Copyright 2010 Andy Tompkins
  4. // Copyright 2017 James E. King III
  5. // Copyright 2024 Peter Dimov
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // https://www.boost.org/LICENSE_1_0.txt
  8. #include <boost/uuid/detail/basic_name_generator.hpp>
  9. #include <boost/uuid/detail/sha1.hpp>
  10. namespace boost {
  11. namespace uuids {
  12. class name_generator_sha1: public detail::basic_name_generator<detail::sha1>
  13. {
  14. public:
  15. explicit name_generator_sha1( uuid const& namespace_uuid ) noexcept:
  16. detail::basic_name_generator<detail::sha1>( namespace_uuid )
  17. {
  18. }
  19. };
  20. } // uuids
  21. } // boost
  22. #endif // BOOST_UUID_NAME_GENERATOR_SHA1_HPP_INCLUDED