// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_TEMPLATE_UTIL_H_ #define BASE_TEMPLATE_UTIL_H_ #include // For size_t. namespace base { template struct integral_constant { static const T value = v; typedef T value_type; typedef integral_constant type; }; typedef integral_constant true_type; typedef integral_constant false_type; template struct is_same : public false_type {}; template struct is_same : true_type {}; template struct enable_if {}; template struct enable_if { typedef T type; }; } // namespace base #endif // BASE_TEMPLATE_UTIL_H_