std::deque<unsigned int> nodes_; // Nodes in the bucket.
unsigned int getId() const { return id_; }
explicit Bucket(unsigned int id) : id_(id) {}
+ // Use rule-of-three, and implicitely disable the move constructor which cannot be 'noexcept' (as required by C++ Core
+ // Guidelines), due to the std::deque member.
+ Bucket(const Bucket&) = default;
+ ~Bucket() = default;
};
/* Node routing table */
*/
class XBT_PUBLIC Element {
public:
+ // Use rule-of-three, and implicitely disable the move constructor which should be 'noexcept' according to C++ Core
+ // Guidelines.
Element() = default;
Element(const Element&) = default;
- Element(Element&& that) noexcept : Element(that) {}
+ ~Element() = default;
int get_concurrency() const;
void decrease_concurrency();