You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
basics
memory.hh
Go to the documentation of this file.
1
6
#ifndef memory_hh
7
#define memory_hh
8
9
namespace
concepts
{
10
16
template
<
class
F>
17
inline
F*
newField
(
uint
nr) {
18
#if defined(__SUNPRO_CC) || defined(__INTEL_COMPILER)
19
return
(F*)std::malloc(nr*
sizeof
(F));
20
#elif defined(__GNUC__)
21
#if __GNUC__ > 3 || __GNUC__ > 2 && __GNUC_MINOR__ > 3
22
return
(F*)std::malloc(nr*
sizeof
(F));
23
#else
24
return
new
(F)[nr];
25
#endif
26
#else
27
return
new
(F)[nr];
28
#endif
29
}
30
31
}
// namespace concepts {
32
33
#endif
// memory_hh
concepts
Definition
pml_formula.h:16
concepts::newField
F * newField(uint nr)
Definition
memory.hh:17
concepts::makeSet
Set< F > makeSet(uint n, const F &first,...)
Definition
set.hh:320
Generated on Wed Sep 13 2023 21:06:17 for Concepts by
1.9.8