libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_pattern.hpp File Reference

Go to the source code of this file.

Data Structures

class  gbl::Pattern
 

Functions

auto gbl::operator<=> (const Pattern &lhs, const GblPattern *pRhs) noexcept
 

Detailed Description

gbl::Pattern C++ bindings for GblPattern

This file contains the type and OO API for gbl::Pattern, the C++ binding layer around GblPattern.

Author
2023 Falco Girgis

Definition in file gimbal_pattern.hpp.

Function Documentation

◆ operator<=>()

auto gbl::operator<=> ( const Pattern lhs,
const GblPattern pRhs 
)
inlinenoexcept

Definition at line 118 of file gimbal_pattern.hpp.

118 {
119 const auto result = GblPattern_compare(lhs, pRhs);
120
121 if(result < 0)
122 return std::strong_ordering::less;
123 else if(result > 0)
124 return std::strong_ordering::greater;
125 else
126 return std::strong_ordering::equal;
127}