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

# sc\_MemAllocFailed(3)

This is thrown when a memory allocation fails.

## NAME

sc::MemAllocFailed - This is thrown when a memory allocation fails.

## SYNOPSIS

`#include <scexception.h>`

Inherits **sc::SystemException**.

### Public Member Functions

**MemAllocFailed** (const char \*description=0, const char \*file=0, int line=0, size\_t **nbyte**=0, const **ClassDesc** \*class\_desc=0, const char \*exception\_type='MemAllocFailed')  throw ()\
 **MemAllocFailed** (const **MemAllocFailed** &)  throw ()\
 size\_t **nbyte** () const  throw ()\
 Returns the number of bytes used in the failed allocation attempt.

## Detailed Description

This is thrown when a memory allocation fails.

## Author

Generated automatically by Doxygen for MPQC from the source code.
