vulkaninfo: use trivial_optional type instead of pair
authorCharles Giessen <charles@lunarg.com>
Tue, 18 May 2021 19:17:09 +0000 (13:17 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 19 May 2021 19:59:25 +0000 (13:59 -0600)
commit8dba2773ab1101b04346dbce425dab8baab39320
treee4cd7a8c7f37c16b237ac0cd1d68184a6adc9099
parentf89f72e10562a622b8b96ef28d9ff066f169850f
vulkaninfo: use trivial_optional type instead of pair

Replace the ad-hoc pair with a bool and a type with a proper class that
makes the interface clear. The `util::trivial_optional<T>`
type requires T to be trivially copyable and constructable, but otherwise
follows the conventions of C++17's <optional>.

Change-Id: I5b3b981be0af2ecd4b05380a5d030b9ecc0be1d0
vulkaninfo/vulkaninfo.cpp
vulkaninfo/vulkaninfo.h