STORMM Source Documentation
Loading...
Searching...
No Matches
mixed_types.h
1// -*-c++-*-
2#ifndef STORMM_MIXED_TYPES_H
3#define STORMM_MIXED_TYPES_H
4
5#include "copyright.h"
6
7namespace stormm {
8namespace data_types {
9
12struct CombineIDp {
13 int x;
14 double y;
15};
16
18template <typename T> struct ValueWithCounter {
19 T value;
20 int count;
21};
22
23} // namespace data_types
24} // namespace stormm
25
26namespace stormm {
27using data_types::CombineIDp;
28using data_types::ValueWithCounter;
29}
30
31#endif
A combination of integer and double data. Like other mixed tuples in this library,...
Definition mixed_types.h:12
a templated, combined type for tagging any data type with an associated integer count
Definition mixed_types.h:18