///
/// NitroTorchAutolinking.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

public final class NitroTorchAutolinking {
  public typealias bridge = margelo.nitro.nitrotorch.bridge.swift

  /**
   * Creates an instance of a Swift class that implements `HybridTorchSpec`,
   * and wraps it in a Swift class that can directly interop with C++ (`HybridTorchSpec_cxx`)
   *
   * This is generated by Nitrogen and will initialize the class specified
   * in the `"autolinking"` property of `nitro.json` (in this case, `HybridTorch`).
   */
  public static func createTorch() -> bridge.std__shared_ptr_HybridTorchSpec_ {
    let hybridObject = HybridTorch()
    return { () -> bridge.std__shared_ptr_HybridTorchSpec_ in
      let __cxxWrapped = hybridObject.getCxxWrapper()
      return __cxxWrapped.getCxxPart()
    }()
  }
}
