12 template <
typename T,
int MaxSize>
13 using InlineVector = Eigen::Matrix<T, Eigen::Dynamic, 1, Eigen::ColMajor, MaxSize, 1>;
25 const auto it = std::lower_bound(
ids_.begin(),
ids_.end(),
id);
26 if (it ==
ids_.end() || *it !=
id)
33 const auto it = std::lower_bound(
ids_.begin(),
ids_.end(),
id);
34 if (it ==
ids_.end() || *it !=
id)
Set of ids stored as a sorted vector: iterates in increasing order like std::set<int>,...
const_iterator cend() const
void insert(const int id)
std::vector< int >::const_iterator const_iterator
const_iterator begin() const
const_iterator cbegin() const
size_t erase(const int id)
Removes id; returns the number of removed ids (0 or 1).
const_iterator end() const
Eigen::Matrix< T, Eigen::Dynamic, 1, Eigen::ColMajor, MaxSize, 1 > InlineVector
Small vector stored inline (no heap allocation), with the VectorXi / VectorXd API; used for the per-e...