Advertisement
SSS_Krut

std::optional

Jul 9th, 2021
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. class HllP{
  2. public:
  3.     struct QueueFamilyIndices {
  4.         std::optional<uint32_t>graphicsFamily;
  5.  
  6.         bool isComplete() {
  7.             return graphicsFamily.has_value();
  8.         }
  9.     };
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement