1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 template<typename PRODUCT>
6 PRODUCT* MdaFactory<PRODUCT>::Create()
10 if (m_cProduct == MDA_MAX_FACTORY_PRODUCT)
11 return GetNext()->Create();
13 return &m_product[m_cProduct++];