X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=sa_compare.h;fp=sa_compare.h;h=95fa0d8d7ef6dc7a8d0f1e71ff5ef017a3b984ec;hp=0000000000000000000000000000000000000000;hb=f2530dbb8415f9e7cc0f2d4b45741120c95e8a05;hpb=40eab3b7a07862a5547fc178e1edec22522ed7dc diff --git a/sa_compare.h b/sa_compare.h new file mode 100644 index 0000000..95fa0d8 --- /dev/null +++ b/sa_compare.h @@ -0,0 +1,11 @@ +#ifndef _SA_COMPARE_H +#define _SA_COMPARE_H + +#include + +// A utility functor to help use sockaddr_in6 as keys in a map. +struct Sockaddr6Compare { + bool operator() (const sockaddr_in6 &a, const sockaddr_in6 &b) const; +}; + +#endif // !defined(_SA_COMPARE_H)