| 657 | public: |
| 658 | template <typename T, typename... TArgs> |
| 659 | static T *CreateTrafficClass(const std::string &name, TArgs... args) { |
| 660 | if (all_tcs_.count(name)) { |
| 661 | return nullptr; |
| 662 | } |
| 663 | |
| 664 | T *c = new T(name, args...); |
| 665 | all_tcs_.emplace(name, c); |
| 666 | return c; |
| 667 | } |
| 668 | |
| 669 | struct PriorityArgs { |
| 670 | PriorityFakeType dummy; |
nothing calls this directly
no outgoing calls
no test coverage detected