9#ifndef __EDITOR_POLICY_H_INCLUDED__
10#define __EDITOR_POLICY_H_INCLUDED__
12#include "OccupancySpectrum.hpp"
20namespace occupancy_spectrum
22namespace editor_policy
31 return std::move(M_j);
41 auto first = --(M_j.end());
42 while (first != M_j.begin() && *first == 0)
46 M_j.
erase(++first, M_j.end());
47 return std::move(M_j);
An occupancy spectrum as defined in Becheler & Knowles, 2020.
Definition OccupancySpectrum.hpp:42
void erase(iterator first, iterator last)
erase a range of elements of the spectrum.
Definition OccupancySpectrum.hpp:204
Simulation of coalescence-based models of molecular evolution.
Definition coalescence.hpp:21
No editions are operated on the spectrum (default behavior)
Definition editor_policy.hpp:28
Edition consists in truncating the last nul elements of the spectrum to avoid useless iterations.
Definition editor_policy.hpp:38