---
name: "std::ratio_add"
section: "3cxx"
platform: "linux"
package: "libstdc++6-4.4-doc"
version: "4.4.7-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/std::ratio_add"
---

# std::ratio\_add(3cxx)

## NAME

std::ratio\_add\< \_R1, \_R2 \> -

## SYNOPSIS

### Public Types

typedef **ratio**\< \_\_safe\_add\
 \< \_\_safe\_multiply\< \_R1::num,(\_R2::den/\_\_gcd)\>\
 ::value, \_\_safe\_multiply\
 \< \_R2::num,(\_R1::den/\_\_gcd)\>\
 ::value \>::value, \
 \_\_safe\_multiply\< \_R1::den,(\_R2::den/\_\_gcd)\>\
 ::value \> **type**"\

## Detailed Description

### template\<typename \_R1, typename \_R2\>struct std::ratio\_add\< \_R1, \_R2 \>

**ratio\_add**

Definition at line 173 of file ratio.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
