Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @startuml
- skinparam shadowing false
- skinparam class {
- BackgroundColor White
- BorderColor Black
- ArrowColor Black
- }
- ' Template class Id
- class "Id<Tag, Rep = std::uint32_t>" as Id <<template>> {
- + value() : Rep const
- }
- ' Empty tag marker
- class AxisIdTag <<struct>> {
- }
- ' alias AxisId
- class AxisId <<alias>>
- ' Template binding: AxisId = Id<AxisIdTag, std::uint8_t>
- AxisId -down-> Id : <<bind>>\nTag -> AxisIdTag,\nRep -> uint8_t
- ' The tag is only used as a template parameter (optional, for clarity).
- AxisIdTag -up- Id : <<bind>>
- note right of AxisId
- using AxisId = Id<AxisIdTag, std::uint8_t>;
- end note
- @enduml
Advertisement
Add Comment
Please, Sign In to add comment