chromium/components/autofill/core/common/is_required.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_AUTOFILL_CORE_COMMON_IS_REQUIRED_H_
#define COMPONENTS_AUTOFILL_CORE_COMMON_IS_REQUIRED_H_

namespace autofill::internal {

// Auxiliary type to mark members of a struct as required:
//
//   struct Foo {
//     int bar = IsRequired();
//   };
struct IsRequired {};

}  // namespace autofill::internal

#endif  // COMPONENTS_AUTOFILL_CORE_COMMON_IS_REQUIRED_H_