Skip to content

intx::result_with_carry

Contains result of add/sub/etc with a carry flag. More...

#include <intx.hpp>

Public Functions

Name
constexpr operator std::tuple< T &, bool & >()
Conversion to tuple of references, to allow usage with std::tie().

Public Attributes

Name
T value
bool carry

Detailed Description

template <typename T >
struct intx::result_with_carry;

Contains result of add/sub/etc with a carry flag.

Public Functions Documentation

function operator std::tuple< T &, bool & >

inline constexpr operator std::tuple< T &, bool & >()

Conversion to tuple of references, to allow usage with std::tie().

Public Attributes Documentation

variable value

T value;

variable carry

bool carry;

Updated on 2026-04-13 at 23:22:46 -0700