1
0
Fork 0

obsolete: std::unary_function

This commit is contained in:
Scott Giese 2022-07-15 09:34:46 -05:00
parent 45effdba78
commit b6cd0335c6
5 changed files with 5 additions and 5 deletions

View file

@ -84,7 +84,7 @@ inline bool operator == (const SGGeodIndex& a, const SGGeodIndex& b) {
( fabs(a.geod.getLatitudeDeg() - b.geod.getLatitudeDeg()) < PROXIMITY_EPSILON ));
}
struct SGGeodIndexHash : std::unary_function<SGGeodIndex, std::size_t>
struct SGGeodIndexHash
{
std::size_t operator()(SGGeodIndex const& gi) const {
return gi.GetHash();

View file

@ -187,7 +187,7 @@ inline bool operator == (const TGNodeIndex& a, const TGNodeIndex& b) {
( fabs(a.geod.getLatitudeDeg() - b.geod.getLatitudeDeg()) < PROXIMITY_EPSILON ));
}
struct TGNodeIndexHash : std::unary_function<TGNodeIndex, std::size_t>
struct TGNodeIndexHash
{
std::size_t operator()(TGNodeIndex const& gi) const {
return gi.GetHash();

View file

@ -81,7 +81,7 @@ inline bool operator == (const SGVec2fIndex& a, const SGVec2fIndex& b) {
( fabs(a.vec.y() - b.vec.y()) < PROXIMITY_EPSILON ));
}
struct SGVec2fIndexHash : std::unary_function<SGVec2fIndex, std::size_t>
struct SGVec2fIndexHash
{
std::size_t operator()(SGVec2fIndex const& vi) const {
return vi.GetHash();

View file

@ -74,7 +74,7 @@ inline bool operator == (const SGVec3dIndex& a, const SGVec3dIndex& b) {
( fabs(a.vec.z() - b.vec.z()) < PROXIMITY_EPSILON ));
}
struct SGVec3dIndexHash : std::unary_function<SGVec3dIndex, std::size_t>
struct SGVec3dIndexHash
{
std::size_t operator()(SGVec3dIndex const& vi) const {
return vi.GetHash();

View file

@ -83,7 +83,7 @@ inline bool operator == (const SGVec3fIndex& a, const SGVec3fIndex& b) {
( fabs(a.vec.z() - b.vec.z()) < PROXIMITY_EPSILON ));
}
struct SGVec3fIndexHash : std::unary_function<SGVec3fIndex, std::size_t>
struct SGVec3fIndexHash
{
std::size_t operator()(SGVec3fIndex const& vi) const {
return vi.GetHash();