Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Tuple.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Apr 23, 2015
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7#pragma once
8
9#include <cstdint>
10#include <vector>
11
17template <typename T>
18class tuple : public std::vector<T> {
19public:
21 tuple() {}
22};
23
30template <typename T, uint8_t capacity>
31class fixed_tuple : public tuple<T> {
32public:
34 fixed_tuple<T, capacity>() : tuple<T>() { this->reserve(capacity); }
35};
A fixed tuple is a vector with a templated type and a reserved capacity.
Definition: cs_Tuple.h:31
A tuple is a vector with a templated type and a public constructor.
Definition: cs_Tuple.h:18
tuple()
Default constructor.
Definition: cs_Tuple.h:21