-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
DependencyRef<Handle, Manager>
alias for
`Dependency<Handle, TargetRefT<Manager>>`, which commonly appears in functions accepting any initializer deduced from a function argument. Rename `IsValidDependency` to `SupportsDependency`. Add `Target{,Ref}SupportsDependency` which apply `Target{,Ref}T` to `Manager` to be stored. These predicates also verify that the stored object can be constructed from the appropriate initializer. This excludes passing already constructed objects of immovable types, and before C++17 this excludes all usages of immovable types. Use `SupportsDependency` etc. in `Any{,Ref,Initializer}`. PiperOrigin-RevId: 697950623
- Loading branch information
Showing
4 changed files
with
111 additions
and
55 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.