---
name: "sc_AccResult"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_AccResult"
---

# sc\_AccResult(3)

This associates a result datum with an accuracy.

## NAME

sc::AccResult\< T \> - This associates a result datum with an accuracy.

## SYNOPSIS

`#include <comptmpl.h>`

Inherits **sc::AccResultInfo**.

### Public Member Functions

**AccResult** (**Compute** \*c)\
 **AccResult** (const **AccResult**\< T \> &r, **Compute** \*c)\
 **operator T&** ()\
 T \* **operator-\>** ()\
 T & **result** ()\
 T & **result\_noupdate** ()\
 const T & **result\_noupdate** () const\
 void **operator=** (const T &a)\
 void **operator=** (const **AccResult**\< T \> &r)\
 void **restore\_state** (**StateIn** &s)\
 void **save\_data\_state** (**StateOut** &s)\
 **AccResult** (**StateIn** &s, **Compute** \*c)\

### Additional Inherited Members

## Detailed Description

### template\<class T\>

class sc::AccResult\< T \>"This associates a result datum with an accuracy.

If the result datum is to be saved or restored use **SSAccResult**.

## Member Function Documentation

### template\<class T \> void sc::AccResult\< T \>::restore\_state (StateIn & s)` [inline]`, ` [virtual]`

Reimplemented from **sc::AccResultInfo**.

### template\<class T \> void sc::AccResult\< T \>::save\_data\_state (StateOut & s)` [inline]`, ` [virtual]`

Reimplemented from **sc::AccResultInfo**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
