BloombergLP::bsls::operator+

Return the sum of the specified lhs and rhs time intervals.

Synopsis

Declared in <bsls_timeinterval.h>

bsls::TimeInterval
operator+(
    TimeInterval const& lhs,
    TimeInterval const& rhs);

Description

Return a TimeInterval value that is the sum of the specified lhs and rhs time intervals. The behavior is undefined unless (1) operands of type double can be converted to valid TimeInterval objects, and (2) the resulting time interval can be represented with a 64-bit signed integer.

Return Value

sum of lhs and rhs as a TimeInterval

Parameters

NameDescription
lhsleft-hand time interval
rhsright-hand time interval