Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1883e7cc
Commit
1883e7cc
authored
Sep 12, 2008
by
mattijs
Browse files
added unsigned types
parent
733f662b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/contiguous/contiguous.H
View file @
1883e7cc
...
...
@@ -47,34 +47,52 @@ namespace Foam
// Assume the data associated with type T is not contiguous
template
<
class
T
>
inline
bool
contiguous
()
{
return
false
;}
inline
bool
contiguous
()
{
return
false
;}
// Specify data associated with primitive types is contiguous
template
<
>
inline
bool
contiguous
<
bool
>
()
{
return
true
;}
inline
bool
contiguous
<
bool
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
char
>
()
{
return
true
;}
inline
bool
contiguous
<
char
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
short
>
()
{
return
true
;}
inline
bool
contiguous
<
unsigned
char
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
int
>
()
{
return
true
;}
inline
bool
contiguous
<
short
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
long
>
()
{
return
true
;}
inline
bool
contiguous
<
unsigned
short
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
float
>
()
{
return
true
;}
inline
bool
contiguous
<
int
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
double
>
()
{
return
true
;}
inline
bool
contiguous
<
unsigned
int
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
long
double
>
()
{
return
true
;}
inline
bool
contiguous
<
long
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
unsigned
long
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
long
long
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
unsigned
long
long
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
float
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
double
>
()
{
return
true
;}
template
<
>
inline
bool
contiguous
<
long
double
>
()
{
return
true
;}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment