Skip to content

Struct std::hash< astrea::astro::CelestialBody >

template <>

ClassList > std > hash< astrea::astro::CelestialBody >

Hash function for CelestialBody.

  • #include <CelestialBody.hpp>

Public Functions

Type Name
std::size_t operator() (astrea::astro::CelestialBody const & body) noexcept const
Computes a hash value for a CelestialBody object.

Public Functions Documentation

function operator()

Computes a hash value for a CelestialBody object.

inline std::size_t std::hash< astrea::astro::CelestialBody >::operator() (
    astrea::astro::CelestialBody const & body
) noexcept const

Parameters:

  • body The CelestialBody object to hash.

Returns:

std::size_t The computed hash value.



The documentation for this class was generated from the following file astrea/astro/astro/systems/CelestialBody.hpp