TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ operator<= [3/3]

template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>>
template<typename ScalarType , typename std::enable_if< std::is_scalar< ScalarType >::value, int >::type = 0>
bool operator<= ( ScalarType  lhs,
const_reference  rhs 
)
friend

comparison: less than or equal

comparison: less than or equal

Compares whether one JSON value lhs is less than or equal to another JSON value by calculating not (rhs < lhs).

Parameters
[in]lhsfirst JSON value to consider
[in]rhssecond JSON value to consider
Returns
whether lhs is less than or equal to rhs

@complexity Linear.

@exceptionsafety No-throw guarantee: this function never throws exceptions.

@liveexample{The example demonstrates comparing several JSON types.,operator__greater}

Since
version 1.0.0

Definition at line 24378 of file json.hpp.

24379 {
24380 return basic_json(lhs) <= rhs;
24381 }
basic_json(const value_t v)
create an empty value with a given type
Definition: json.hpp:19164