GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-locbuf.h File Reference
#include "octave-config.h"
#include <cstddef>
#include <algorithm>
#include <memory>
Include dependency graph for oct-locbuf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OCTAVE_LOCAL_BUFFER(T, buf, size)
 
#define OCTAVE_LOCAL_BUFFER_INIT(T, buf, size, value)
 

Macro Definition Documentation

◆ OCTAVE_LOCAL_BUFFER

#define OCTAVE_LOCAL_BUFFER (   T,
  buf,
  size 
)
Value:
std::unique_ptr<T []> octave_local_buffer_ ## buf { new T [size] }; \
T *buf = octave_local_buffer_ ## buf.get ()

Definition at line 44 of file oct-locbuf.h.

◆ OCTAVE_LOCAL_BUFFER_INIT

#define OCTAVE_LOCAL_BUFFER_INIT (   T,
  buf,
  size,
  value 
)
Value:
OCTAVE_LOCAL_BUFFER (T, buf, size); \
std::fill_n (buf, size, value)
#define OCTAVE_LOCAL_BUFFER(T, buf, size)
Definition: oct-locbuf.h:44

Definition at line 50 of file oct-locbuf.h.