Merge pull request !42055 from qiuzhongya/qiuzhongya_cleancode2
This commit is contained in:
i-robot 2022-09-16 11:49:14 +00:00 committed by Gitee
commit b00f991437
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,8 @@ class DATASET_API Slice {
Slice(Slice const &slice) = default;
Slice &operator=(const Slice &slice) = default;
~Slice() = default;
bool valid() const { return step_ != 0; }
@ -152,6 +154,8 @@ class DATASET_API SliceOption {
SliceOption(SliceOption const &slice) = default;
SliceOption &operator=(const SliceOption &slice) = default;
~SliceOption() = default;
// only one of the following will be valid