- Initialized mData, which is std::array type, explicitly.
Then, BitSet constructor does not need to fill it with zero.
Change-Id: I40bd13bab1603633afc21a25917f361553b9a402
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
// Constructors
/**
- * @brief Constructs a new BitSet with all bits set to 0.
- *
- * Equivalent to the pseudocode:
- * @code
- * for(i = 0; i < max; ++i) bits[i] = 0;
- * @endcode
+ * @brief Constructor.
*/
- BitSet()
- {
- std::fill(mData.begin(), mData.end(), 0u);
- }
+ BitSet() = default;
BitSet(const BitSet&) = default;
return result;
}
- ArrayType mData;
+ ArrayType mData{};
};
/**