KiCad PCB EDA Suite
std::less< VECTOR2I > Struct Template Reference

#include <vector2d.h>

Public Member Functions

bool operator() (const VECTOR2I &aA, const VECTOR2I &aB) const
 

Detailed Description

template<>
struct std::less< VECTOR2I >

Definition at line 637 of file vector2d.h.

Member Function Documentation

◆ operator()()

bool std::less< VECTOR2I >::operator() ( const VECTOR2I aA,
const VECTOR2I aB 
) const

Definition at line 34 of file vector2.cpp.

35 {
36  if( aA.x == aB.x )
37  return aA.y < aB.y;
38 
39  return aA.x < aB.x;
40 }

References VECTOR2< T >::x, and VECTOR2< T >::y.


The documentation for this struct was generated from the following files: