forked from catboost/catboost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5506d57
commit d5ea8f9
Showing
9 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
8 changes: 2 additions & 6 deletions
8
fuzzing/library/cpp/containers/flat_hash/fuzz/dense_map_fuzz/corpus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
{ | ||
"corpus_parts": [ | ||
6172475937, | ||
6179377874, | ||
6194160339, | ||
6186642258, | ||
6201626105, | ||
6208401807 | ||
6211005253, | ||
6213461710 | ||
] | ||
} |
4 changes: 3 additions & 1 deletion
4
fuzzing/library/cpp/containers/flat_hash/fuzz/flat_map_fuzz/corpus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"corpus_parts": [ | ||
6201641645, | ||
6208364118 | ||
6208364118, | ||
6211020087, | ||
6213462973 | ||
] | ||
} |
6 changes: 1 addition & 5 deletions
6
fuzzing/library/cpp/containers/intrusive_rb_tree/fuzz/corpus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
{ | ||
"corpus_parts": [ | ||
6179373922, | ||
6194159388, | ||
6201622973, | ||
6186636558, | ||
6208360859 | ||
6213467961 | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"corpus_parts": [ | ||
6211003442, | ||
6201625340, | ||
6208360077 | ||
6208360077, | ||
6213460734 | ||
] | ||
} |
4 changes: 3 additions & 1 deletion
4
fuzzing/library/cpp/string_utils/base64/fuzz/generic/corpus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"corpus_parts": [ | ||
6208361483 | ||
6211002058, | ||
6208361483, | ||
6213461699 | ||
] | ||
} |
4 changes: 3 additions & 1 deletion
4
fuzzing/library/cpp/string_utils/base64/fuzz/uneven/corpus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{ | ||
"corpus_parts": [ | ||
6186635968, | ||
6208360449, | ||
6201622793, | ||
6211003386, | ||
6194163390, | ||
6208360449 | ||
6213460321 | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#pragma once | ||
|
||
#include <concepts> | ||
|
||
namespace NYT { | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
namespace NDetail { | ||
|
||
template <class T, class TSignature> | ||
struct TIsInvocable; | ||
|
||
template <class T, class TResult, bool NoExcept, class... TArgs> | ||
struct TIsInvocable<T, TResult(TArgs...) noexcept(NoExcept)> | ||
{ | ||
private: | ||
static constexpr bool IsInvocable_ = requires (T&& t, TArgs&&... args) { | ||
{ std::forward<T>(t)(std::forward<TArgs>(args)...) } -> std::same_as<TResult>; | ||
}; | ||
|
||
static constexpr bool IsNoThrowInvocable_ = requires (T&& t, TArgs&&... args) { | ||
{ std::forward<T>(t)(std::forward<TArgs>(args)...) } noexcept -> std::same_as<TResult>; | ||
}; | ||
|
||
public: | ||
static constexpr bool Value = | ||
IsInvocable_ && | ||
(!NoExcept || IsNoThrowInvocable_); | ||
}; | ||
|
||
} // namespace NDetail | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
template <class TObject, class TScalar> | ||
concept CScalable = requires (TObject object, TScalar scalar) | ||
{ | ||
{ object * scalar } -> std::same_as<TObject>; | ||
}; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
template <class T, class TSignature> | ||
concept CInvocable = NDetail::TIsInvocable<T, TSignature>::Value; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
} // namespace NYT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters