From 9117232e1671aedb8da2dccc0b93fc469fda229f Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Thu, 18 Jul 2013 01:58:36 -0400 Subject: [PATCH] made fc::array comparable --- include/fc/array.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fc/array.hpp b/include/fc/array.hpp index cd1f312..e82782b 100644 --- a/include/fc/array.hpp +++ b/include/fc/array.hpp @@ -32,6 +32,9 @@ namespace fc { template bool operator == ( const array& a, const array& b ) { return 0 == memcmp( a.data, b.data, N*sizeof(T) ); } + template + bool operator < ( const array& a, const array& b ) + { return memcmp( a.data, b.data, N*sizeof(T) ) < 0 ; } template bool operator != ( const array& a, const array& b )